diff options
| author | bors <bors@rust-lang.org> | 2018-01-13 15:29:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-01-13 15:29:31 +0000 |
| commit | e6072a7b3835f1875e81c9fd27799f9b20a0770c (patch) | |
| tree | 9360de92c08bfa3b40b25e94ac70e6a7aa77356c /src/libsyntax | |
| parent | 9b2f8ac29eca4a42c35ce32b13231fcc1f9a3c9d (diff) | |
| parent | 95c3fc05a91d432b215a22a082b4d4a9336db8a6 (diff) | |
| download | rust-e6072a7b3835f1875e81c9fd27799f9b20a0770c.tar.gz rust-e6072a7b3835f1875e81c9fd27799f9b20a0770c.zip | |
Auto merge of #47251 - rkruppe:rm-simd-attr, r=eddyb
Remove deprecated unstable attribute #[simd] The `#[simd]` attribute has been deprecated since c8b6d5b23cc8b2d43ece9f06252c7e98280fb8e5 back in 2015. Any nightly crates using it have had ample time to switch to `#[repr(simd)]`, and if they didn't they're likely broken by now anyway. r? @eddyb
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 8397f666eee..b474a299058 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -131,7 +131,6 @@ declare_features! ( (active, link_llvm_intrinsics, "1.0.0", Some(29602)), (active, linkage, "1.0.0", Some(29603)), (active, quote, "1.0.0", Some(29601)), - (active, simd, "1.0.0", Some(27731)), // rustc internal @@ -473,6 +472,8 @@ declare_features! ( (removed, unmarked_api, "1.0.0", None), (removed, pushpop_unsafe, "1.2.0", None), (removed, allocator, "1.0.0", None), + // Allows the `#[simd]` attribute -- removed in favor of `#[repr(simd)]` + (removed, simd, "1.0.0", Some(27731)), ); declare_features! ( @@ -636,7 +637,6 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG ("start", Normal, Ungated), ("test", Normal, Ungated), ("bench", Normal, Ungated), - ("simd", Normal, Ungated), ("repr", Normal, Ungated), ("path", Normal, Ungated), ("abi", Normal, Ungated), @@ -1511,14 +1511,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> { } ast::ItemKind::Struct(..) => { - if let Some(attr) = attr::find_by_name(&i.attrs[..], "simd") { - gate_feature_post!(&self, simd, attr.span, - "SIMD types are experimental and possibly buggy"); - self.context.parse_sess.span_diagnostic.span_warn(attr.span, - "the `#[simd]` attribute \ - is deprecated, use \ - `#[repr(simd)]` instead"); - } if let Some(attr) = attr::find_by_name(&i.attrs[..], "repr") { for item in attr.meta_item_list().unwrap_or_else(Vec::new) { if item.check_name("simd") { |
