提交 bef1828d 编写于 作者: H Huon Wilson

Rename `simd_basics` feature gate to `repr_simd`.

上级 48f35077
......@@ -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)]
......
......@@ -180,10 +180,10 @@
("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 @@ pub fn new() -> 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 @@ fn visit_item(&mut self, i: &ast::Item) {
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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册