@@ -277,7 +277,6 @@ mod question_mark;
277
277
mod ranges;
278
278
mod redundant_clone;
279
279
mod redundant_field_names;
280
- mod redundant_pattern_matching;
281
280
mod redundant_pub_crate;
282
281
mod redundant_static_lifetimes;
283
282
mod reference;
@@ -623,11 +622,13 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
623
622
& matches:: INFALLIBLE_DESTRUCTURING_MATCH ,
624
623
& matches:: MATCH_AS_REF ,
625
624
& matches:: MATCH_BOOL ,
625
+ & matches:: MATCH_LIKE_MATCHES_MACRO ,
626
626
& matches:: MATCH_OVERLAPPING_ARM ,
627
627
& matches:: MATCH_REF_PATS ,
628
628
& matches:: MATCH_SINGLE_BINDING ,
629
629
& matches:: MATCH_WILDCARD_FOR_SINGLE_VARIANTS ,
630
630
& matches:: MATCH_WILD_ERR_ARM ,
631
+ & matches:: REDUNDANT_PATTERN_MATCHING ,
631
632
& matches:: REST_PAT_IN_FULLY_BOUND_STRUCTS ,
632
633
& matches:: SINGLE_MATCH ,
633
634
& matches:: SINGLE_MATCH_ELSE ,
@@ -757,7 +758,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
757
758
& ranges:: REVERSED_EMPTY_RANGES ,
758
759
& redundant_clone:: REDUNDANT_CLONE ,
759
760
& redundant_field_names:: REDUNDANT_FIELD_NAMES ,
760
- & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ,
761
761
& redundant_pub_crate:: REDUNDANT_PUB_CRATE ,
762
762
& redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ,
763
763
& reference:: DEREF_ADDROF ,
@@ -956,7 +956,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
956
956
store. register_late_pass ( || box missing_doc:: MissingDoc :: new ( ) ) ;
957
957
store. register_late_pass ( || box missing_inline:: MissingInline ) ;
958
958
store. register_late_pass ( || box if_let_some_result:: OkIfLet ) ;
959
- store. register_late_pass ( || box redundant_pattern_matching:: RedundantPatternMatching ) ;
960
959
store. register_late_pass ( || box partialeq_ne_impl:: PartialEqNeImpl ) ;
961
960
store. register_late_pass ( || box unused_io_amount:: UnusedIoAmount ) ;
962
961
let enum_variant_size_threshold = conf. enum_variant_size_threshold ;
@@ -1295,9 +1294,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1295
1294
LintId :: of( & map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1296
1295
LintId :: of( & matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1297
1296
LintId :: of( & matches:: MATCH_AS_REF ) ,
1297
+ LintId :: of( & matches:: MATCH_LIKE_MATCHES_MACRO ) ,
1298
1298
LintId :: of( & matches:: MATCH_OVERLAPPING_ARM ) ,
1299
1299
LintId :: of( & matches:: MATCH_REF_PATS ) ,
1300
1300
LintId :: of( & matches:: MATCH_SINGLE_BINDING ) ,
1301
+ LintId :: of( & matches:: REDUNDANT_PATTERN_MATCHING ) ,
1301
1302
LintId :: of( & matches:: SINGLE_MATCH ) ,
1302
1303
LintId :: of( & matches:: WILDCARD_IN_OR_PATTERNS ) ,
1303
1304
LintId :: of( & mem_discriminant:: MEM_DISCRIMINANT_NON_ENUM ) ,
@@ -1387,7 +1388,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1387
1388
LintId :: of( & ranges:: REVERSED_EMPTY_RANGES ) ,
1388
1389
LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
1389
1390
LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1390
- LintId :: of( & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ) ,
1391
1391
LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1392
1392
LintId :: of( & reference:: DEREF_ADDROF ) ,
1393
1393
LintId :: of( & reference:: REF_IN_DEREF ) ,
@@ -1488,8 +1488,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1488
1488
LintId :: of( & manual_non_exhaustive:: MANUAL_NON_EXHAUSTIVE ) ,
1489
1489
LintId :: of( & map_clone:: MAP_CLONE ) ,
1490
1490
LintId :: of( & matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1491
+ LintId :: of( & matches:: MATCH_LIKE_MATCHES_MACRO ) ,
1491
1492
LintId :: of( & matches:: MATCH_OVERLAPPING_ARM ) ,
1492
1493
LintId :: of( & matches:: MATCH_REF_PATS ) ,
1494
+ LintId :: of( & matches:: REDUNDANT_PATTERN_MATCHING ) ,
1493
1495
LintId :: of( & matches:: SINGLE_MATCH ) ,
1494
1496
LintId :: of( & mem_replace:: MEM_REPLACE_OPTION_WITH_NONE ) ,
1495
1497
LintId :: of( & mem_replace:: MEM_REPLACE_WITH_DEFAULT ) ,
@@ -1526,7 +1528,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1526
1528
LintId :: of( & ptr:: PTR_ARG ) ,
1527
1529
LintId :: of( & question_mark:: QUESTION_MARK ) ,
1528
1530
LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1529
- LintId :: of( & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ) ,
1530
1531
LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1531
1532
LintId :: of( & regex:: TRIVIAL_REGEX ) ,
1532
1533
LintId :: of( & returns:: NEEDLESS_RETURN ) ,
0 commit comments