The following program builds and runs on stable but fails to build on nightly:
fn main() {
dbg!(is_x86_feature_detected!("avx512f"));
}
Here's the build error on rustc 1.43.0-nightly (58b834344 2020-02-05):
error[E0658]: use of unstable library feature 'stdsimd'
--> src/main.rs:2:10
|
2 | dbg!(is_x86_feature_detected!("avx512f"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/27731
= help: add `#![feature(stdsimd)]` to the crate attributes to enable
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
But note that if I replace "avx512f" with "avx2", the error goes away.
The following program builds and runs on stable but fails to build on nightly:
Here's the build error on
rustc 1.43.0-nightly (58b834344 2020-02-05):But note that if I replace
"avx512f"with"avx2", the error goes away.