Disallow #[primary_span] on LintDiagnostics
This commit is contained in:
parent
a960f8304c
commit
bd0d3f745d
4 changed files with 30 additions and 6 deletions
|
@ -613,7 +613,6 @@ pub struct NonExportedMacroInvalidAttrs {
|
|||
#[derive(LintDiagnostic)]
|
||||
#[lint(passes::unused_duplicate)]
|
||||
pub struct UnusedDuplicate {
|
||||
#[primary_span]
|
||||
#[suggestion(code = "", applicability = "machine-applicable")]
|
||||
pub this: Span,
|
||||
#[note]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue