mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
add applicability to lint name suggestion
This commit is contained in:
parent
1b89724b48
commit
8fba46aa27
@ -332,9 +332,12 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
|
||||
// https://github.com/rust-lang/rust/pull/56992
|
||||
CheckLintNameResult::NoLint(None) => (),
|
||||
_ => {
|
||||
db.span_suggestion(lint.span,
|
||||
"lowercase the lint name",
|
||||
name_lower);
|
||||
db.span_suggestion_with_applicability(
|
||||
lint.span,
|
||||
"lowercase the lint name",
|
||||
name_lower,
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user