@@ -218,7 +218,6 @@ pub mod if_let_some_result;
218
218
pub mod if_not_else;
219
219
pub mod implicit_return;
220
220
pub mod indexing_slicing;
221
- pub mod infallible_destructuring_match;
222
221
pub mod infinite_iter;
223
222
pub mod inherent_impl;
224
223
pub mod inherent_to_string;
@@ -555,7 +554,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
555
554
& implicit_return:: IMPLICIT_RETURN ,
556
555
& indexing_slicing:: INDEXING_SLICING ,
557
556
& indexing_slicing:: OUT_OF_BOUNDS_INDEXING ,
558
- & infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ,
559
557
& infinite_iter:: INFINITE_ITER ,
560
558
& infinite_iter:: MAYBE_INFINITE_ITER ,
561
559
& inherent_impl:: MULTIPLE_INHERENT_IMPL ,
@@ -600,10 +598,12 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
600
598
& map_clone:: MAP_CLONE ,
601
599
& map_unit_fn:: OPTION_MAP_UNIT_FN ,
602
600
& map_unit_fn:: RESULT_MAP_UNIT_FN ,
601
+ & matches:: INFALLIBLE_DESTRUCTURING_MATCH ,
603
602
& matches:: MATCH_AS_REF ,
604
603
& matches:: MATCH_BOOL ,
605
604
& matches:: MATCH_OVERLAPPING_ARM ,
606
605
& matches:: MATCH_REF_PATS ,
606
+ & matches:: MATCH_SINGLE_BINDING ,
607
607
& matches:: MATCH_WILD_ERR_ARM ,
608
608
& matches:: SINGLE_MATCH ,
609
609
& matches:: SINGLE_MATCH_ELSE ,
@@ -864,7 +864,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
864
864
store. register_late_pass ( || box types:: Casts ) ;
865
865
let type_complexity_threshold = conf. type_complexity_threshold ;
866
866
store. register_late_pass ( move || box types:: TypeComplexity :: new ( type_complexity_threshold) ) ;
867
- store. register_late_pass ( || box matches:: Matches ) ;
867
+ store. register_late_pass ( || box matches:: Matches :: default ( ) ) ;
868
868
store. register_late_pass ( || box minmax:: MinMaxPass ) ;
869
869
store. register_late_pass ( || box open_options:: OpenOptions ) ;
870
870
store. register_late_pass ( || box zero_div_zero:: ZeroDiv ) ;
@@ -941,7 +941,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
941
941
store. register_late_pass ( || box question_mark:: QuestionMark ) ;
942
942
store. register_late_pass ( || box suspicious_trait_impl:: SuspiciousImpl ) ;
943
943
store. register_late_pass ( || box map_unit_fn:: MapUnit ) ;
944
- store. register_late_pass ( || box infallible_destructuring_match:: InfallibleDestructingMatch ) ;
945
944
store. register_late_pass ( || box inherent_impl:: MultipleInherentImpl :: default ( ) ) ;
946
945
store. register_late_pass ( || box neg_cmp_op_on_partial_ord:: NoNegCompOpForPartialOrd ) ;
947
946
store. register_late_pass ( || box unwrap:: Unwrap ) ;
@@ -1166,7 +1165,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1166
1165
LintId :: of( & identity_op:: IDENTITY_OP ) ,
1167
1166
LintId :: of( & if_let_some_result:: IF_LET_SOME_RESULT ) ,
1168
1167
LintId :: of( & indexing_slicing:: OUT_OF_BOUNDS_INDEXING ) ,
1169
- LintId :: of( & infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1170
1168
LintId :: of( & infinite_iter:: INFINITE_ITER ) ,
1171
1169
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING ) ,
1172
1170
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING_SHADOW_DISPLAY ) ,
@@ -1201,10 +1199,12 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1201
1199
LintId :: of( & map_clone:: MAP_CLONE ) ,
1202
1200
LintId :: of( & map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
1203
1201
LintId :: of( & map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1202
+ LintId :: of( & matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1204
1203
LintId :: of( & matches:: MATCH_AS_REF ) ,
1205
1204
LintId :: of( & matches:: MATCH_BOOL ) ,
1206
1205
LintId :: of( & matches:: MATCH_OVERLAPPING_ARM ) ,
1207
1206
LintId :: of( & matches:: MATCH_REF_PATS ) ,
1207
+ LintId :: of( & matches:: MATCH_SINGLE_BINDING ) ,
1208
1208
LintId :: of( & matches:: MATCH_WILD_ERR_ARM ) ,
1209
1209
LintId :: of( & matches:: SINGLE_MATCH ) ,
1210
1210
LintId :: of( & matches:: WILDCARD_IN_OR_PATTERNS ) ,
@@ -1382,7 +1382,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1382
1382
LintId :: of( & functions:: DOUBLE_MUST_USE ) ,
1383
1383
LintId :: of( & functions:: MUST_USE_UNIT ) ,
1384
1384
LintId :: of( & if_let_some_result:: IF_LET_SOME_RESULT ) ,
1385
- LintId :: of( & infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1386
1385
LintId :: of( & inherent_to_string:: INHERENT_TO_STRING ) ,
1387
1386
LintId :: of( & len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
1388
1387
LintId :: of( & len_zero:: LEN_ZERO ) ,
@@ -1395,6 +1394,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1395
1394
LintId :: of( & loops:: WHILE_LET_ON_ITERATOR ) ,
1396
1395
LintId :: of( & main_recursion:: MAIN_RECURSION ) ,
1397
1396
LintId :: of( & map_clone:: MAP_CLONE ) ,
1397
+ LintId :: of( & matches:: INFALLIBLE_DESTRUCTURING_MATCH ) ,
1398
1398
LintId :: of( & matches:: MATCH_BOOL ) ,
1399
1399
LintId :: of( & matches:: MATCH_OVERLAPPING_ARM ) ,
1400
1400
LintId :: of( & matches:: MATCH_REF_PATS ) ,
@@ -1483,6 +1483,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
1483
1483
LintId :: of( & map_unit_fn:: OPTION_MAP_UNIT_FN ) ,
1484
1484
LintId :: of( & map_unit_fn:: RESULT_MAP_UNIT_FN ) ,
1485
1485
LintId :: of( & matches:: MATCH_AS_REF ) ,
1486
+ LintId :: of( & matches:: MATCH_SINGLE_BINDING ) ,
1486
1487
LintId :: of( & matches:: WILDCARD_IN_OR_PATTERNS ) ,
1487
1488
LintId :: of( & methods:: CHARS_NEXT_CMP ) ,
1488
1489
LintId :: of( & methods:: CLONE_ON_COPY ) ,
0 commit comments