Skip to content

Commit 59b250e

Browse files
committed
Auto merge of #3667 - euclio:applicability, r=phansch
add applicability to lint name suggestion
2 parents 1b89724 + 8fba46a commit 59b250e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: 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)