Improve check-cfg diagnostics (part 1)
This commit is contained in:
parent
d327d5b168
commit
a5f8dba4cd
12 changed files with 40 additions and 38 deletions
|
@ -591,7 +591,7 @@ pub fn cfg_matches(
|
|||
"unexpected `cfg` condition value",
|
||||
BuiltinLintDiagnostics::UnexpectedCfg(
|
||||
(cfg.name, cfg.name_span),
|
||||
cfg.value_span.map(|vs| (cfg.value.unwrap(), vs)),
|
||||
cfg.value.map(|v| (v, cfg.value_span.unwrap())),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue