Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error is displayed when I benchmark. #56

Open
doronz2 opened this issue Sep 15, 2020 · 2 comments
Open

An error is displayed when I benchmark. #56

doronz2 opened this issue Sep 15, 2020 · 2 comments

Comments

@doronz2
Copy link

doronz2 commented Sep 15, 2020

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?

@sshravan
Copy link

Any luck getting around this?

@sshravan
Copy link

sshravan commented Feb 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants