Skip to content

Commit bef1828

Browse files
committed
Rename simd_basics feature gate to repr_simd.
1 parent 48f3507 commit bef1828

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/libcore/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#![feature(reflect)]
8080
#![feature(rustc_attrs)]
8181
#![cfg_attr(stage0, feature(simd))]
82-
#![cfg_attr(not(stage0), feature(simd_basics))]
82+
#![cfg_attr(not(stage0), feature(repr_simd))]
8383
#![feature(staged_api)]
8484
#![feature(unboxed_closures)]
8585

src/libsyntax/feature_gate.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Status)] = &[
180180
("type_macros", "1.3.0", Active),
181181

182182
// allow `repr(simd)`, and importing the various simd intrinsics
183-
("simd_basics", "1.3.0", Active),
183+
("repr_simd", "1.4.0", Active),
184184

185185
// Allows cfg(target_feature = "...").
186-
("cfg_target_feature", "1.3.0", Active),
186+
("cfg_target_feature", "1.4.0", Active),
187187

188188
// allow `extern "platform-intrinsic" { ... }`
189189
("platform_intrinsics", "1.4.0", Active),
@@ -422,7 +422,6 @@ pub struct Features {
422422
pub allow_box: bool,
423423
pub allow_pushpop_unsafe: bool,
424424
pub simd_ffi: bool,
425-
pub simd_basics: bool,
426425
pub unmarked_api: bool,
427426
pub negate_unsigned: bool,
428427
/// spans of #![feature] attrs for stable language features. for error reporting
@@ -453,7 +452,6 @@ impl Features {
453452
allow_box: false,
454453
allow_pushpop_unsafe: false,
455454
simd_ffi: false,
456-
simd_basics: false,
457455
unmarked_api: false,
458456
negate_unsigned: false,
459457
declared_stable_lang_features: Vec::new(),
@@ -741,7 +739,7 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
741739
if attr.name() == "repr" {
742740
for item in attr.meta_item_list().unwrap_or(&[]) {
743741
if item.name() == "simd" {
744-
self.gate_feature("simd_basics", i.span,
742+
self.gate_feature("repr_simd", i.span,
745743
"SIMD types are experimental and possibly buggy");
746744

747745
}
@@ -979,7 +977,6 @@ fn check_crate_inner<F>(cm: &CodeMap, span_handler: &SpanHandler,
979977
allow_box: cx.has_feature("box_syntax"),
980978
allow_pushpop_unsafe: cx.has_feature("pushpop_unsafe"),
981979
simd_ffi: cx.has_feature("simd_ffi"),
982-
simd_basics: cx.has_feature("simd_basics"),
983980
unmarked_api: cx.has_feature("unmarked_api"),
984981
negate_unsigned: cx.has_feature("negate_unsigned"),
985982
declared_stable_lang_features: accepted_features,

0 commit comments

Comments
 (0)