From 95c3fc05a91d432b215a22a082b4d4a9336db8a6 Mon Sep 17 00:00:00 2001 From: Robin Kruppe Date: Sun, 7 Jan 2018 16:29:37 +0100 Subject: 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. --- src/libsyntax/feature_gate.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/libsyntax/feature_gate.rs') diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index e5ef9393e7b..d5dd22fb8ae 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 @@ -470,6 +469,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! ( @@ -633,7 +634,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), @@ -1501,14 +1501,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") { -- cgit 1.4.1-3-g733a5