-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Feature gate #[simd] #11738
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
Feature gate #[simd] #11738
Conversation
pub struct i64x2(i64, i64); //~ ERROR: SIMD types are experimental | ||
|
||
fn main() { | ||
let _ = simd::i64x2(0, 0); //~ ERROR: experimental |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you run this test past make check yet? I think that the feature gating happens at a much earlier phase than the stability lint checking levels. You may just need to split this into two tests.
This looks great, thanks! |
Will this actually prevent people from using simd? Doesn't this just make |
@brson: we could mark those as |
They are marked experimental by this PR. |
Sounds good. |
Unfortunately it looks like we don't handle cross-crate tuple structs correctly, so this currently doesn't stop people using |
Removed the `from_expansion` guard clause for cast lints, so that these warnings can be generated for internal macros.
Allow `cast` lints in macros closes: rust-lang#11738 Removed the `from_expansion` guard clause for cast lints, so that these warnings can be generated for internal macros. changelog: allow `cast` lints in macros
Fixes #11721