accumulator icon indicating copy to clipboard operation
accumulator copied to clipboard

An error is displayed when I benchmark.

Open doronz2 opened this issue 4 years ago • 2 comments

Cargo bench gives me the following error:

error[E0308]: mismatched types --> src/uint.rs:53:16 | 53 | d: self.data(), | ^^^^^^^^^^^ expected struct NonNull, found *-ptr ... 418 | u_types!(U256, 4, U512, 8); | --------------------------- in this macro invocation | = note: expected struct NonNull<u64> found raw pointer *mut u64 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types --> src/uint.rs:536:8 | 536 | d: mut_ptr(&data), | ^^^^^^^^^^^^^^ expected struct NonNull, found *-ptr | = note: expected struct NonNull<u64> found raw pointer *mut &mut u64

Did anyone else got this? Is there a quick solution?

doronz2 avatar Sep 15 '20 15:09 doronz2

Any luck getting around this?

sshravan avatar Jan 30 '21 04:01 sshravan

Setting gmp-mpfr-sys = "=1.1.12" in Cargo.toml worked

sshravan avatar Feb 02 '21 16:02 sshravan