1
Fork 0

Disallow #[primary_span] on LintDiagnostics

This commit is contained in:
Xiretza 2022-08-19 15:04:34 +02:00
parent a960f8304c
commit bd0d3f745d
4 changed files with 30 additions and 6 deletions

View file

@ -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]