-
Notifications
You must be signed in to change notification settings - Fork 102
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
Missing use core::num::Float? #149
Comments
Same issue here. I'm not sure why this happens though, as these functions should actually exist in std, and AFAIK there is no obvious reason why they should not exist in a no_std crate. Perhaps a rustc bug report is in order? |
Mmm... it does work with rustc 1.28 installed via rustup, so the problem seems to originate from either 1.26 or the Tumbleweed package. Let's investigate further... |
Alright, the Rust toolchain version is the issue. 1.26.2 installed via rustup doesn't work, 1.27.0 installed via rustup does work. The relevant functionality was likely introduced by this PR during the 1.27 release cycle. So... I guess Tumbleweed users will need to use rustup for now if they want to use the libm crate or a crate that indirectly depends on it like nalgebra. |
@HadrienG2 Thanks for your investigation of this issue. So I will leave this open for now and close it as soon as the working version landed officially. |
Can't compile with rustc 1.26.2 stable on OpenSUSE Tumbleweed 64bit because I get errors like:
Temporarily fixed by
use core::num::Float;
.The text was updated successfully, but these errors were encountered: