1
Fork 0

Use native duplicate attribute check

This commit is contained in:
Jacob Pratt 2022-04-11 20:43:42 -04:00
parent bfdf234fae
commit 0b3db4e4ee
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
6 changed files with 31 additions and 32 deletions

View file

@ -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