Auto merge of #3667 - euclio:applicability, r=phansch
add applicability to lint name suggestion
This commit is contained in:
commit
59b250e4f9
|
@ -332,9 +332,12 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
|
||||||
// https://github.com/rust-lang/rust/pull/56992
|
// https://github.com/rust-lang/rust/pull/56992
|
||||||
CheckLintNameResult::NoLint(None) => (),
|
CheckLintNameResult::NoLint(None) => (),
|
||||||
_ => {
|
_ => {
|
||||||
db.span_suggestion(lint.span,
|
db.span_suggestion_with_applicability(
|
||||||
"lowercase the lint name",
|
lint.span,
|
||||||
name_lower);
|
"lowercase the lint name",
|
||||||
|
name_lower,
|
||||||
|
Applicability::MaybeIncorrect,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue