Fix invalid check-cfg Cargo feature diagnostic help
This commit is contained in:
parent
621e241748
commit
a25e0236df
2 changed files with 1 additions and 4 deletions
|
@ -804,8 +804,6 @@ pub trait LintContext {
|
|||
db.span_suggestion(value_span, "there is a expected value with a similar name", format!("\"{best_match}\""), Applicability::MaybeIncorrect);
|
||||
|
||||
}
|
||||
} else if name == sym::feature && is_from_cargo {
|
||||
db.help(format!("consider defining `{name}` as feature in `Cargo.toml`"));
|
||||
} else if let &[first_possibility] = &possibilities[..] {
|
||||
db.span_suggestion(name_span.shrink_to_hi(), "specify a config value", format!(" = \"{first_possibility}\""), Applicability::MaybeIncorrect);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue