about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCrazyRoka <rokarostuk@gmail.com>2020-04-24 00:28:18 +0300
committerCrazyRoka <RokaRostuk@gmail.com>2020-04-24 22:45:15 +0300
commit96e2bc80f556e54b95ae224dc2f59cfa47397a38 (patch)
treeaeac08b56d2d9d83e035e84051667ba06c51de04 /src
parent1d4dd3d428cf6a622dc863a134ffacdb2183b6db (diff)
downloadrust-96e2bc80f556e54b95ae224dc2f59cfa47397a38.tar.gz
rust-96e2bc80f556e54b95ae224dc2f59cfa47397a38.zip
Added lint `match_vec_item`
Diffstat (limited to 'src')
-rw-r--r--src/lintlist/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lintlist/mod.rs b/src/lintlist/mod.rs
index 2c466aa20c6..7c9e0448950 100644
--- a/src/lintlist/mod.rs
+++ b/src/lintlist/mod.rs
@@ -1173,6 +1173,13 @@ 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",