resolve merge conflict from cherry-picking 6a47326a04

This commit is contained in:
Diego de Oliveira 2022-09-14 15:03:12 -03:00 committed by Nathan Stocks
parent b8e03cfa55
commit 1222541cfd
2 changed files with 10 additions and 0 deletions

View File

@ -384,3 +384,6 @@ passes_local_duplicate_lang_item =
passes_invalid_attr_at_crate_level =
`{$name}` attribute cannot be used at crate level
.suggestion = perhaps you meant to use an outer attribute
passes_deprecated_annotation_has_no_effect = this `#[deprecated]` annotation has no effect
.suggestion = remove the unnecessary deprecation attribute

View File

@ -744,3 +744,10 @@ impl IntoDiagnostic<'_> for InvalidAttrAtCrateLevel {
diag
}
}
#[derive(LintDiagnostic)]
#[diag(passes::deprecated_annotation_has_no_effect)]
pub struct DeprecatedAnnotationHasNoEffect {
#[suggestion(applicability = "machine-applicable", code = "")]
pub span: Span,
}