about summary refs log tree commit diff
path: root/compiler/rustc_attr
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2022-04-11 20:43:42 -0400
committerJacob Pratt <jacob@jhpratt.dev>2022-04-14 21:19:48 -0400
commit0b3db4e4ee0767a8996f20538da85ce5e1bb46b2 (patch)
tree2646be1ea3904ec9b01e69186d218a0102f31a55 /compiler/rustc_attr
parentbfdf234fae852113d73fbe894d2583857b10d8d2 (diff)
downloadrust-0b3db4e4ee0767a8996f20538da85ce5e1bb46b2.tar.gz
rust-0b3db4e4ee0767a8996f20538da85ce5e1bb46b2.zip
Use native duplicate attribute check
Diffstat (limited to 'compiler/rustc_attr')
-rw-r--r--compiler/rustc_attr/src/builtin.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_attr/src/builtin.rs b/compiler/rustc_attr/src/builtin.rs
index 466ab82031d..5a79cf68f11 100644
--- a/compiler/rustc_attr/src/builtin.rs
+++ b/compiler/rustc_attr/src/builtin.rs
@@ -679,14 +679,6 @@ where
             continue;
         }
 
-        if let Some((_, span)) = &depr {
-            struct_span_err!(diagnostic, attr.span, E0550, "multiple deprecated attributes")
-                .span_label(attr.span, "repeated deprecation attribute")
-                .span_label(*span, "first deprecation attribute")
-                .emit();
-            break;
-        }
-
         // FIXME(jhpratt) remove this eventually
         if attr.has_name(sym::rustc_deprecated) {
             diagnostic