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

Build failing on rust 1.73.0 #184

Open
luca992 opened this issue Nov 15, 2023 · 0 comments
Open

Build failing on rust 1.73.0 #184

luca992 opened this issue Nov 15, 2023 · 0 comments

Comments

@luca992
Copy link

luca992 commented Nov 15, 2023

   Compiling curv-kzen v0.10.0
error[E0308]: mismatched types
    --> /Users/lucaspinazzola/.cargo/registry/src/index.crates.io-6f17d22bba15001f/curv-kzen-0.10.0/src/arithmetic/big_native/primes.rs:506:35
     |
506  |         let bytes = bits.div_ceil(&8);
     |                          -------- ^^ expected `u64`, found `&{integer}`
     |                          |
     |                          arguments to this method are incorrect
     |
note: method defined here
    --> /Users/lucaspinazzola/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/num/mod.rs:1166:5
     |
1166 | /     uint_impl! {
1167 | |         Self = u64,
1168 | |         ActualT = u64,
1169 | |         SignedT = i64,
...    |
1183 | |         bound_condition = "",
1184 | |     }
     | |_____^
     = note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider removing the borrow
     |
506  -         let bytes = bits.div_ceil(&8);
506  +         let bytes = bits.div_ceil(8);
     |

For more information about this error, try `rustc --explain E0308`.

Downgrading to 1.72.1 works

luca992 added a commit to luca992/framework that referenced this issue Nov 15, 2023
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

1 participant