Skip to content

Commit 8fba46a

Browse files
committed
add applicability to lint name suggestion
1 parent 1b89724 commit 8fba46a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

clippy_lints/src/attrs.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,12 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) {
332332
// https://github.com/rust-lang/rust/pull/56992
333333
CheckLintNameResult::NoLint(None) => (),
334334
_ => {
335-
db.span_suggestion(lint.span,
336-
"lowercase the lint name",
337-
name_lower);
335+
db.span_suggestion_with_applicability(
336+
lint.span,
337+
"lowercase the lint name",
338+
name_lower,
339+
Applicability::MaybeIncorrect,
340+
);
338341
}
339342
}
340343
}

0 commit comments

Comments
 (0)