File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
rustc_error_messages/locales/en-US Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -384,3 +384,6 @@ passes_local_duplicate_lang_item =
384
384
passes_invalid_attr_at_crate_level =
385
385
`{ $name } ` attribute cannot be used at crate level
386
386
.suggestion = perhaps you meant to use an outer attribute
387
+
388
+ passes_deprecated_annotation_has_no_effect = this `#[deprecated]` annotation has no effect
389
+ .suggestion = remove the unnecessary deprecation attribute
Original file line number Diff line number Diff line change @@ -744,3 +744,10 @@ impl IntoDiagnostic<'_> for InvalidAttrAtCrateLevel {
744
744
diag
745
745
}
746
746
}
747
+
748
+ #[ derive( LintDiagnostic ) ]
749
+ #[ diag( passes:: deprecated_annotation_has_no_effect) ]
750
+ pub struct DeprecatedAnnotationHasNoEffect {
751
+ #[ suggestion( applicability = "machine-applicable" , code = "" ) ]
752
+ pub span : Span ,
753
+ }
You can’t perform that action at this time.
0 commit comments