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