@@ -126,7 +126,6 @@ pub mod formatting;
126
126
pub mod functions;
127
127
pub mod identity_conversion;
128
128
pub mod identity_op;
129
- pub mod if_let_redundant_pattern_matching;
130
129
pub mod if_not_else;
131
130
pub mod indexing_slicing;
132
131
pub mod infallible_destructuring_match;
@@ -180,6 +179,7 @@ pub mod ptr_offset_with_cast;
180
179
pub mod question_mark;
181
180
pub mod ranges;
182
181
pub mod redundant_field_names;
182
+ pub mod redundant_pattern_matching;
183
183
pub mod reference;
184
184
pub mod regex;
185
185
pub mod replace_consts;
@@ -303,6 +303,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
303
303
"assign_ops" ,
304
304
"using compound assignment operators (e.g. `+=`) is harmless" ,
305
305
) ;
306
+ store. register_removed (
307
+ "if_let_redundant_pattern_matching" ,
308
+ "this lint has been changed to redundant_pattern_matching" ,
309
+ ) ;
306
310
// end deprecated lints, do not remove this comment, it’s used in `update_lints`
307
311
308
312
reg. register_late_lint_pass ( box serde_api:: Serde ) ;
@@ -402,7 +406,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
402
406
reg. register_late_lint_pass ( box missing_doc:: MissingDoc :: new ( ) ) ;
403
407
reg. register_late_lint_pass ( box missing_inline:: MissingInline ) ;
404
408
reg. register_late_lint_pass ( box ok_if_let:: Pass ) ;
405
- reg. register_late_lint_pass ( box if_let_redundant_pattern_matching :: Pass ) ;
409
+ reg. register_late_lint_pass ( box redundant_pattern_matching :: Pass ) ;
406
410
reg. register_late_lint_pass ( box partialeq_ne_impl:: Pass ) ;
407
411
reg. register_early_lint_pass ( box reference:: Pass ) ;
408
412
reg. register_early_lint_pass ( box reference:: DerefPass ) ;
@@ -565,7 +569,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
565
569
functions:: TOO_MANY_ARGUMENTS ,
566
570
identity_conversion:: IDENTITY_CONVERSION ,
567
571
identity_op:: IDENTITY_OP ,
568
- if_let_redundant_pattern_matching:: IF_LET_REDUNDANT_PATTERN_MATCHING ,
569
572
indexing_slicing:: OUT_OF_BOUNDS_INDEXING ,
570
573
infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ,
571
574
infinite_iter:: INFINITE_ITER ,
@@ -680,6 +683,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
680
683
ranges:: RANGE_PLUS_ONE ,
681
684
ranges:: RANGE_ZIP_WITH_LEN ,
682
685
redundant_field_names:: REDUNDANT_FIELD_NAMES ,
686
+ redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ,
683
687
reference:: DEREF_ADDROF ,
684
688
reference:: REF_IN_DEREF ,
685
689
regex:: INVALID_REGEX ,
@@ -749,7 +753,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
749
753
excessive_precision:: EXCESSIVE_PRECISION ,
750
754
formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ,
751
755
formatting:: SUSPICIOUS_ELSE_FORMATTING ,
752
- if_let_redundant_pattern_matching:: IF_LET_REDUNDANT_PATTERN_MATCHING ,
753
756
infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ,
754
757
len_zero:: LEN_WITHOUT_IS_EMPTY ,
755
758
len_zero:: LEN_ZERO ,
@@ -800,6 +803,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
800
803
ptr:: PTR_ARG ,
801
804
question_mark:: QUESTION_MARK ,
802
805
redundant_field_names:: REDUNDANT_FIELD_NAMES ,
806
+ redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ,
803
807
regex:: REGEX_MACRO ,
804
808
regex:: TRIVIAL_REGEX ,
805
809
returns:: LET_AND_RETURN ,
0 commit comments