Skip to content

Commit 1222541

Browse files
diegooliveiraCleanCut
authored andcommitted
resolve merge conflict from cherry-picking 6a47326
1 parent b8e03cf commit 1222541

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

compiler/rustc_error_messages/locales/en-US/passes.ftl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,3 +384,6 @@ passes_local_duplicate_lang_item =
384384
passes_invalid_attr_at_crate_level =
385385
`{$name}` attribute cannot be used at crate level
386386
.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

compiler/rustc_passes/src/errors.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,3 +744,10 @@ impl IntoDiagnostic<'_> for InvalidAttrAtCrateLevel {
744744
diag
745745
}
746746
}
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+
}

0 commit comments

Comments
 (0)