about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCrazyRoka <RokaRostuk@gmail.com>2020-04-25 11:33:40 +0300
committerCrazyRoka <RokaRostuk@gmail.com>2020-04-25 11:34:16 +0300
commit63b451ea25c7797530c84b82781e0800c9bda68d (patch)
tree8325b19f67014242453115ec7d551ad55d96f116 /src
parentb0115fb996b8cee2202ca379efd209d74ce0f751 (diff)
downloadrust-63b451ea25c7797530c84b82781e0800c9bda68d.tar.gz
rust-63b451ea25c7797530c84b82781e0800c9bda68d.zip
Renamed lint to `match_on_vec_items`
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 7c9e0448950..17f94411298 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -1145,6 +1145,13 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
         module: "matches",
     },
     Lint {
+        name: "match_on_vec_items",
+        group: "style",
+        desc: "matching on vector elements can panic",
+        deprecation: None,
+        module: "match_on_vec_items",
+    },
+    Lint {
         name: "match_overlapping_arm",
         group: "style",
         desc: "a `match` with overlapping arms",
@@ -1173,13 +1180,6 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
         module: "matches",
     },
     Lint {
-        name: "match_vec_item",
-        group: "style",
-        desc: "match vector by indexing can panic",
-        deprecation: None,
-        module: "match_vec_item",
-    },
-    Lint {
         name: "match_wild_err_arm",
         group: "style",
         desc: "a `match` with `Err(_)` arm and take drastic actions",