about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-23 12:30:43 +0000
committerbors <bors@rust-lang.org>2018-12-23 12:30:43 +0000
commitfc24fce73f878e641094b1802df1e748c5fe233a (patch)
tree7695bb57496494691e48f304598febf6e6705a1c
parent52820e588f218184c62ccc51ed60240f75365d09 (diff)
parent6db409fc0c34e8acbb47d24bdb39d701acf759f6 (diff)
downloadrust-fc24fce73f878e641094b1802df1e748c5fe233a.tar.gz
rust-fc24fce73f878e641094b1802df1e748c5fe233a.zip
Auto merge of #3576 - matthiaskrgr:rustup, r=oli-obk
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..7310e35116f 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 => (),
+                                // FIXME: 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",