about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2020-07-05 22:10:59 +0200
committerrobojumper <robojumper@gmail.com>2020-07-06 18:25:20 +0200
commit2e8a1be444afc6a9b5137d3e7e4fdcfcb1f89e0d (patch)
tree9d9a666d2ad727ea925b463103f4a1272948177d /src
parentac856922f80e9ef8cd95c3004699e4bc8fa0c978 (diff)
new lint: match_like_matches_macro
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index e681f47f949..888b4755484 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -1180,6 +1180,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
         module: "matches",
     },
     Lint {
+        name: "match_like_matches_macro",
+        group: "style",
+        desc: "a match that could be written with the matches! macro",
+        deprecation: None,
+        module: "matches",
+    },
+    Lint {
         name: "match_on_vec_items",
         group: "pedantic",
         desc: "matching on vector elements can panic",
@@ -1856,7 +1863,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
         group: "style",
         desc: "use the proper utility function avoiding an `if let`",
         deprecation: None,
-        module: "redundant_pattern_matching",
+        module: "matches",
     },
     Lint {
         name: "redundant_pub_crate",