1
Fork 0

Improve unexpected_cfgs lint when their is no value expected

This commit is contained in:
Loïc BRANSTETT 2022-03-03 15:56:19 +01:00
parent 86067bb461
commit 92544f43b0
7 changed files with 52 additions and 29 deletions

View file

@ -426,7 +426,7 @@ pub enum BuiltinLintDiagnostics {
BreakWithLabelAndLoop(Span),
NamedAsmLabel(String),
UnicodeTextFlow(Span, String),
UnexpectedCfg(Span, Symbol, Option<Symbol>),
UnexpectedCfg((Symbol, Span), Option<(Symbol, Span)>),
}
/// Lints that are buffered up early on in the `Session` before the