From ce3e69da1c3fd3bcb04c5260cbaab4bb521f2589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 23 Dec 2018 10:42:06 +0100 Subject: [PATCH] rustup https://github.com/rust-lang/rust/pull/56992 --- clippy_lints/src/attrs.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs index a8b03d214..8d4a2a84a 100644 --- a/clippy_lints/src/attrs.rs +++ b/clippy_lints/src/attrs.rs @@ -337,7 +337,9 @@ fn check_clippy_lint_names(cx: &LateContext<'_, '_>, items: &[NestedMetaItem]) { &name_lower, Some(tool_name.as_str()) ) { - CheckLintNameResult::NoLint => (), + // @TODO: can we suggest similar lint names here? + // https://github.com/rust-lang/rust/pull/56992 + CheckLintNameResult::NoLint(None) => (), _ => { db.span_suggestion(lint.span, "lowercase the lint name",