Skip to content

Commit b574941

Browse files
committed
Updated lint info in lib.rs
1 parent 940c662 commit b574941

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14731473
LintId::of(&loops::WHILE_LET_ON_ITERATOR),
14741474
LintId::of(&main_recursion::MAIN_RECURSION),
14751475
LintId::of(&map_clone::MAP_CLONE),
1476-
LintId::of(&match_on_vec_items::MATCH_ON_VEC_ITEMS),
14771476
LintId::of(&matches::INFALLIBLE_DESTRUCTURING_MATCH),
14781477
LintId::of(&matches::MATCH_BOOL),
14791478
LintId::of(&matches::MATCH_OVERLAPPING_ARM),
@@ -1646,6 +1645,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16461645
LintId::of(&loops::NEVER_LOOP),
16471646
LintId::of(&loops::REVERSE_RANGE_LOOP),
16481647
LintId::of(&loops::WHILE_IMMUTABLE_CONDITION),
1648+
LintId::of(&match_on_vec_items::MATCH_ON_VEC_ITEMS),
16491649
LintId::of(&mem_discriminant::MEM_DISCRIMINANT_NON_ENUM),
16501650
LintId::of(&mem_replace::MEM_REPLACE_WITH_UNINIT),
16511651
LintId::of(&methods::CLONE_DOUBLE_REF),

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
11461146
},
11471147
Lint {
11481148
name: "match_on_vec_items",
1149-
group: "style",
1149+
group: "correctness",
11501150
desc: "matching on vector elements can panic",
11511151
deprecation: None,
11521152
module: "match_on_vec_items",

0 commit comments

Comments
 (0)