add error message for unused duplicate

This commit is contained in:
Jana Dönszelmann
2025-03-03 17:45:14 +01:00
parent 6072207a11
commit e6a5f281ec
2 changed files with 2 additions and 4 deletions

View File

@@ -135,9 +135,7 @@ attr_parsing_unused_duplicate =
unused attribute
.suggestion = remove this attribute
.note = attribute also specified here
.warn = {-attr_parsing_previously_accepted}
.warn = {-passes_previously_accepted}
attr_parsing_unused_multiple =
multiple `{$name}` attributes
.suggestion = remove this attribute

View File

@@ -452,7 +452,7 @@ pub(crate) struct UnusedMultiple {
}
#[derive(LintDiagnostic)]
#[diag(attr_parsing_unused_multiple)]
#[diag(attr_parsing_unused_duplicate)]
pub(crate) struct UnusedDuplicate {
#[suggestion(code = "", applicability = "machine-applicable")]
pub this: Span,