From 96e2bc80f556e54b95ae224dc2f59cfa47397a38 Mon Sep 17 00:00:00 2001 From: CrazyRoka Date: Fri, 24 Apr 2020 00:28:18 +0300 Subject: Added lint `match_vec_item` --- src/lintlist/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 @@ -1172,6 +1172,13 @@ pub static ref ALL_LINTS: Vec = vec![ deprecation: None, 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", -- cgit 1.4.1-3-g733a5