about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2018-12-23 10:42:06 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2018-12-23 10:42:06 +0100
commitce3e69da1c3fd3bcb04c5260cbaab4bb521f2589 (patch)
treebf12f822c04edbf5d4fe4dba6537eb7e6d9dc8b4
parent52820e588f218184c62ccc51ed60240f75365d09 (diff)
downloadrust-ce3e69da1c3fd3bcb04c5260cbaab4bb521f2589.tar.gz
rust-ce3e69da1c3fd3bcb04c5260cbaab4bb521f2589.zip
rustup https://github.com/rust-lang/rust/pull/56992
-rw-r--r--clippy_lints/src/attrs.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/clippy_lints/src/attrs.rs b/clippy_lints/src/attrs.rs
index a8b03d21482..8d4a2a84aab 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",