check rust lints when an unknown lint is detected

This commit is contained in:
yukang 2024-01-11 00:24:46 +08:00
parent e927184629
commit ca421fe1d3
8 changed files with 85 additions and 19 deletions

View file

@ -1050,9 +1050,10 @@ pub enum UnknownLintSuggestion {
#[primary_span]
suggestion: Span,
replace: Symbol,
from_rustc: bool,
},
#[help(lint_help)]
WithoutSpan { replace: Symbol },
WithoutSpan { replace: Symbol, from_rustc: bool },
}
#[derive(LintDiagnostic)]