Build error `E0277`: trait bound `f64: std::cmp::Eq` is not satisfied
voxpelli opened this issue · comments
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Checkout latest
main
- Run
cargo build --release
- See error
Expected behavior
The project would actually build.
error[E0277]: the trait bound
f64: std::cmp::Eq
is not satisfied
--> swagger/src/schema.rs:56:5
cherrybomb/swagger/src/schema.rs
Line 56 in 1004531
= note: required because of the requirements on the impl of
std::cmp::Eq
forstd::option::Option<f64>
note: required by a bound inAssertParamIsEq
--> /Users/pelle/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:317:31
Desktop (please complete the following information):
- OS: [e.g. iOS] MacOS 12.5.1 M1
Additional context
I guess this might be because I'm compiling on an M1 and thus is targeting aarch64
?
Hi, what toolchain are you using?
It can only compile on nightly, and I'll add it to the readme
@GuyL99 Rust 1.63.0, sorry for forgetting that very crucial information 😝
Could you add a rust-toolchain.toml
file?
@RazMag and @DeliciousBounty, can you do it?
@dmdhrumilmistry Do you compile on rust nightly?
@dmdhrumilmistry Do you compile on rust nightly?
I believe I'm using a stable release since I installed rust using default options.
Edit:
I tried to install it again with the rust nightly build but it's returning the same error. Commands used are listed below:
$ rustup default nightly
$ rustup update
$ rustc --version
rustc 1.67.0-nightly (6284998a2 2022-11-12)
$ cargo install cherrybomb
The above commands prompted the same error.
Thank you @dmdhrumilmistry looking into this rn
Hey this should be fixed now in dev, in crates.io and soon in the main branch.