@@ -276,7 +276,6 @@ mod question_mark;
276
276
mod ranges;
277
277
mod redundant_clone;
278
278
mod redundant_field_names;
279
- mod redundant_pattern_matching;
280
279
mod redundant_pub_crate;
281
280
mod redundant_static_lifetimes;
282
281
mod reference;
@@ -622,11 +621,13 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
622
621
& matches:: INFALLIBLE_DESTRUCTURING_MATCH ,
623
622
& matches:: MATCH_AS_REF ,
624
623
& matches:: MATCH_BOOL ,
624
+ & matches:: MATCH_LIKE_MATCHES_MACRO ,
625
625
& matches:: MATCH_OVERLAPPING_ARM ,
626
626
& matches:: MATCH_REF_PATS ,
627
627
& matches:: MATCH_SINGLE_BINDING ,
628
628
& matches:: MATCH_WILDCARD_FOR_SINGLE_VARIANTS ,
629
629
& matches:: MATCH_WILD_ERR_ARM ,
630
+ & matches:: REDUNDANT_PATTERN_MATCHING ,
630
631
& matches:: REST_PAT_IN_FULLY_BOUND_STRUCTS ,
631
632
& matches:: SINGLE_MATCH ,
632
633
& matches:: SINGLE_MATCH_ELSE ,
@@ -755,7 +756,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
755
756
& ranges:: REVERSED_EMPTY_RANGES ,
756
757
& redundant_clone:: REDUNDANT_CLONE ,
757
758
& redundant_field_names:: REDUNDANT_FIELD_NAMES ,
758
- & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ,
759
759
& redundant_pub_crate:: REDUNDANT_PUB_CRATE ,
760
760
& redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ,
761
761
& reference:: DEREF_ADDROF ,
@@ -954,7 +954,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
954
954
store. register_late_pass ( || box missing_doc:: MissingDoc :: new ( ) ) ;
955
955
store. register_late_pass ( || box missing_inline:: MissingInline ) ;
956
956
store. register_late_pass ( || box if_let_some_result:: OkIfLet ) ;
957
- store. register_late_pass ( || box redundant_pattern_matching:: RedundantPatternMatching ) ;
958
957
store. register_late_pass ( || box partialeq_ne_impl:: PartialEqNeImpl ) ;
959
958
store. register_late_pass ( || box unused_io_amount:: UnusedIoAmount ) ;
960
959
let enum_variant_size_threshold = conf. enum_variant_size_threshold ;
@@ -1291,9 +1290,11 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1291
1290
LintId :: of( & map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1292
1291
LintId :: of( & matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1293
1292
LintId :: of( & matches:: MATCH_AS_REF ) ,
1293
+ LintId :: of( & matches:: MATCH_LIKE_MATCHES_MACRO ) ,
1294
1294
LintId :: of( & matches:: MATCH_OVERLAPPING_ARM ) ,
1295
1295
LintId :: of( & matches:: MATCH_REF_PATS ) ,
1296
1296
LintId :: of( & matches:: MATCH_SINGLE_BINDING ) ,
1297
+ LintId :: of( & matches:: REDUNDANT_PATTERN_MATCHING ) ,
1297
1298
LintId :: of( & matches:: SINGLE_MATCH ) ,
1298
1299
LintId :: of( & matches:: WILDCARD_IN_OR_PATTERNS ) ,
1299
1300
LintId :: of( & mem_discriminant:: MEM_DISCRIMINANT_NON_ENUM ) ,
@@ -1383,7 +1384,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1383
1384
LintId :: of( & ranges:: REVERSED_EMPTY_RANGES ) ,
1384
1385
LintId :: of( & redundant_clone:: REDUNDANT_CLONE ) ,
1385
1386
LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1386
- LintId :: of( & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ) ,
1387
1387
LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1388
1388
LintId :: of( & reference:: DEREF_ADDROF ) ,
1389
1389
LintId :: of( & reference:: REF_IN_DEREF ) ,
@@ -1484,8 +1484,10 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1484
1484
LintId :: of( & manual_non_exhaustive:: MANUAL_NON_EXHAUSTIVE ) ,
1485
1485
LintId :: of( & map_clone:: MAP_CLONE ) ,
1486
1486
LintId :: of( & matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1487
+ LintId :: of( & matches:: MATCH_LIKE_MATCHES_MACRO ) ,
1487
1488
LintId :: of( & matches:: MATCH_OVERLAPPING_ARM ) ,
1488
1489
LintId :: of( & matches:: MATCH_REF_PATS ) ,
1490
+ LintId :: of( & matches:: REDUNDANT_PATTERN_MATCHING ) ,
1489
1491
LintId :: of( & matches:: SINGLE_MATCH ) ,
1490
1492
LintId :: of( & mem_replace:: MEM_REPLACE_OPTION_WITH_NONE ) ,
1491
1493
LintId :: of( & mem_replace:: MEM_REPLACE_WITH_DEFAULT ) ,
@@ -1522,7 +1524,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1522
1524
LintId :: of( & ptr:: PTR_ARG ) ,
1523
1525
LintId :: of( & question_mark:: QUESTION_MARK ) ,
1524
1526
LintId :: of( & redundant_field_names:: REDUNDANT_FIELD_NAMES ) ,
1525
- LintId :: of( & redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ) ,
1526
1527
LintId :: of( & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ) ,
1527
1528
LintId :: of( & regex:: TRIVIAL_REGEX ) ,
1528
1529
LintId :: of( & returns:: NEEDLESS_RETURN ) ,
0 commit comments