add error message for unused duplicate
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user