]> git.lizzy.rs Git - rust.git/blobdiff - src/lintlist/mod.rs
Rollup merge of #5752 - chrisduerr:pedantic_ranges, r=flip1995
[rust.git] / src / lintlist / mod.rs
index e681f47f949dfee5e6eee6830550833f454afd2b..0c77e07c872ae14169c4d4ef1fb38a6aa61ab50d 100644 (file)
         deprecation: None,
         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",
     },
     Lint {
         name: "range_minus_one",
-        group: "complexity",
+        group: "pedantic",
         desc: "`x..=(y-1)` reads better as `x..y`",
         deprecation: None,
         module: "ranges",
         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",