Auto merge of #3667 - euclio:applicability, r=phansch

add applicability to lint name suggestion
This commit is contained in:
bors 2019-01-17 16:26:50 +00:00
commit 59b250e4f9

View file

@ -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,
);
} }
} }
} }