ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
264 stars 111 forks source link

Build failing on rust 1.73.0 #184

Open luca992 opened 8 months ago

luca992 commented 8 months ago
   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