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

Unstable feature crate attribute not recognized in different modules #746

Open
haslersn opened this issue Dec 7, 2023 · 0 comments
Open

Comments

@haslersn
Copy link
Contributor

haslersn commented Dec 7, 2023

I added

#![feature(portable_simd)]

to my benches/main.rs and configured criterion as follows:

[dev-dependencies]
criterion = { version = "0.3" }

[[bench]]
name = "main"
harness = false

Within benches/main.rs, I can use that feature. However, when I add mod uint; to benches/main.rs and use the portable_simd feature from within benches/uint.rs, I get the following error:

error[E0658]: use of unstable library feature 'portable_simd'
 --> benches/uint.rs:1:17
  |
1 | use std::simd::{LaneCount, SupportedLaneCount};
  |                 ^^^^^^^^^
  |
  = note: see issue #86656 <https://github.com/rust-lang/rust/issues/86656> for more information
  = help: add `#![feature(portable_simd)]` to the crate attributes to enable
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