add error message for unused duplicate
This commit is contained in:
@@ -135,9 +135,7 @@ attr_parsing_unused_duplicate =
|
|||||||
unused attribute
|
unused attribute
|
||||||
.suggestion = remove this attribute
|
.suggestion = remove this attribute
|
||||||
.note = attribute also specified here
|
.note = attribute also specified here
|
||||||
.warn = {-attr_parsing_previously_accepted}
|
.warn = {-passes_previously_accepted}
|
||||||
|
|
||||||
|
|
||||||
attr_parsing_unused_multiple =
|
attr_parsing_unused_multiple =
|
||||||
multiple `{$name}` attributes
|
multiple `{$name}` attributes
|
||||||
.suggestion = remove this attribute
|
.suggestion = remove this attribute
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ pub(crate) struct UnusedMultiple {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(LintDiagnostic)]
|
#[derive(LintDiagnostic)]
|
||||||
#[diag(attr_parsing_unused_multiple)]
|
#[diag(attr_parsing_unused_duplicate)]
|
||||||
pub(crate) struct UnusedDuplicate {
|
pub(crate) struct UnusedDuplicate {
|
||||||
#[suggestion(code = "", applicability = "machine-applicable")]
|
#[suggestion(code = "", applicability = "machine-applicable")]
|
||||||
pub this: Span,
|
pub this: Span,
|
||||||
|
|||||||
Reference in New Issue
Block a user