accumulator
accumulator copied to clipboard
An error is displayed when I benchmark.
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?
Any luck getting around this?
Setting gmp-mpfr-sys = "=1.1.12"
in Cargo.toml
worked