From 8fba46aa275247b8cd2e5fcb08ba1fe0c3de745e Mon Sep 17 00:00:00 2001 From: Andy Russell Date: Wed, 16 Jan 2019 15:27:43 -0500 Subject: [PATCH] add applicability to lint name suggestion --- clippy_lints/src/attrs.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs index a3f2cc6a23b9..693d6d487e2b 100644 --- a/clippy_lints/src/attrs.rs +++ b/clippy_lints/src/attrs.rs @@ -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, + ); } } }