Improve unexpected_cfgs lint when their is no value expected
This commit is contained in:
parent
86067bb461
commit
92544f43b0
7 changed files with 52 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue