diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-08-06 16:03:41 -0700 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-08-17 14:41:39 -0700 |
| commit | bef1828d427a3eb9f57d865efc4b615b08714b46 (patch) | |
| tree | 35427aaadbff5d57d3b094a6a67e83b698454745 | |
| parent | 48f3507763c646e2353e84f6b0e7269784588d17 (diff) | |
| download | rust-bef1828d427a3eb9f57d865efc4b615b08714b46.tar.gz rust-bef1828d427a3eb9f57d865efc4b615b08714b46.zip | |
Rename `simd_basics` feature gate to `repr_simd`.
| -rw-r--r-- | src/libcore/lib.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index c064d87e370..d21cfbcdfce 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -79,7 +79,7 @@ #![feature(reflect)] #![feature(rustc_attrs)] #![cfg_attr(stage0, feature(simd))] -#![cfg_attr(not(stage0), feature(simd_basics))] +#![cfg_attr(not(stage0), feature(repr_simd))] #![feature(staged_api)] #![feature(unboxed_closures)] diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index b0167d75bc0..f5a0a2f4718 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -180,10 +180,10 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Status)] = &[ ("type_macros", "1.3.0", Active), // allow `repr(simd)`, and importing the various simd intrinsics - ("simd_basics", "1.3.0", Active), + ("repr_simd", "1.4.0", Active), // Allows cfg(target_feature = "..."). - ("cfg_target_feature", "1.3.0", Active), + ("cfg_target_feature", "1.4.0", Active), // allow `extern "platform-intrinsic" { ... }` ("platform_intrinsics", "1.4.0", Active), @@ -422,7 +422,6 @@ pub struct Features { pub allow_box: bool, pub allow_pushpop_unsafe: bool, pub simd_ffi: bool, - pub simd_basics: bool, pub unmarked_api: bool, pub negate_unsigned: bool, /// spans of #![feature] attrs for stable language features. for error reporting @@ -453,7 +452,6 @@ impl Features { allow_box: false, allow_pushpop_unsafe: false, simd_ffi: false, - simd_basics: false, unmarked_api: false, negate_unsigned: false, declared_stable_lang_features: Vec::new(), @@ -741,7 +739,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> { if attr.name() == "repr" { for item in attr.meta_item_list().unwrap_or(&[]) { if item.name() == "simd" { - self.gate_feature("simd_basics", i.span, + self.gate_feature("repr_simd", i.span, "SIMD types are experimental and possibly buggy"); } @@ -979,7 +977,6 @@ fn check_crate_inner<F>(cm: &CodeMap, span_handler: &SpanHandler, allow_box: cx.has_feature("box_syntax"), allow_pushpop_unsafe: cx.has_feature("pushpop_unsafe"), simd_ffi: cx.has_feature("simd_ffi"), - simd_basics: cx.has_feature("simd_basics"), unmarked_api: cx.has_feature("unmarked_api"), negate_unsigned: cx.has_feature("negate_unsigned"), declared_stable_lang_features: accepted_features, |
