Skip to content

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

Merged
merged 1 commit into from
Jan 28, 2014
Merged

Feature gate #[simd] #11738

merged 1 commit into from
Jan 28, 2014

Conversation

dmanescu
Copy link
Contributor

Fixes #11721

pub struct i64x2(i64, i64); //~ ERROR: SIMD types are experimental

fn main() {
let _ = simd::i64x2(0, 0); //~ ERROR: experimental
Copy link
Member

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.

@alexcrichton
Copy link
Member

This looks great, thanks!

@brson
Copy link
Contributor

brson commented Jan 23, 2014

Will this actually prevent people from using simd? Doesn't this just make std declare that it's implementing the simd types without preventing people from using them?

@thestinger
Copy link
Contributor

@brson: we could mark those as #[experimental]

@huonw
Copy link
Member

huonw commented Jan 23, 2014

They are marked experimental by this PR.

@brson
Copy link
Contributor

brson commented Jan 23, 2014

Sounds good.

@huonw
Copy link
Member

huonw commented Jan 23, 2014

Unfortunately it looks like we don't handle cross-crate tuple structs correctly, so this currently doesn't stop people using std::unstable::simd, but when #11741 is fixed it will.

bors added a commit that referenced this pull request Jan 28, 2014
@bors bors closed this Jan 28, 2014
@bors bors merged commit 28b987b into rust-lang:master Jan 28, 2014
bors added a commit that referenced this pull request Feb 1, 2014
…lexcrichton

Fixes #11741
Added tests and removed xfail-fast from run-pass/simd-experimental which is now fixed (see #11738).
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 18, 2024
Removed the `from_expansion` guard clause for cast lints, so that these warnings can be generated for internal macros.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 18, 2024
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
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

Successfully merging this pull request may close these issues.

RFC: feature gate #[simd] & mark the simd types in std #[experimental]
6 participants