@@ -126,7 +126,6 @@ pub mod formatting;
126126pub mod functions;
127127pub mod identity_conversion;
128128pub mod identity_op;
129- pub mod if_let_redundant_pattern_matching;
130129pub mod if_not_else;
131130pub mod indexing_slicing;
132131pub mod infallible_destructuring_match;
@@ -180,6 +179,7 @@ pub mod ptr_offset_with_cast;
180179pub mod question_mark;
181180pub mod ranges;
182181pub mod redundant_field_names;
182+ pub mod redundant_pattern_matching;
183183pub mod reference;
184184pub mod regex;
185185pub mod replace_consts;
@@ -303,6 +303,10 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
303303 "assign_ops" ,
304304 "using compound assignment operators (e.g. `+=`) is harmless" ,
305305 ) ;
306+ store. register_removed (
307+ "if_let_redundant_pattern_matching" ,
308+ "this lint has been changed to redundant_pattern_matching" ,
309+ ) ;
306310 // end deprecated lints, do not remove this comment, it’s used in `update_lints`
307311
308312 reg. register_late_lint_pass ( box serde_api:: Serde ) ;
@@ -402,7 +406,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
402406 reg. register_late_lint_pass ( box missing_doc:: MissingDoc :: new ( ) ) ;
403407 reg. register_late_lint_pass ( box missing_inline:: MissingInline ) ;
404408 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 ) ;
406410 reg. register_late_lint_pass ( box partialeq_ne_impl:: Pass ) ;
407411 reg. register_early_lint_pass ( box reference:: Pass ) ;
408412 reg. register_early_lint_pass ( box reference:: DerefPass ) ;
@@ -565,7 +569,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
565569 functions:: TOO_MANY_ARGUMENTS ,
566570 identity_conversion:: IDENTITY_CONVERSION ,
567571 identity_op:: IDENTITY_OP ,
568- if_let_redundant_pattern_matching:: IF_LET_REDUNDANT_PATTERN_MATCHING ,
569572 indexing_slicing:: OUT_OF_BOUNDS_INDEXING ,
570573 infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ,
571574 infinite_iter:: INFINITE_ITER ,
@@ -680,6 +683,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
680683 ranges:: RANGE_PLUS_ONE ,
681684 ranges:: RANGE_ZIP_WITH_LEN ,
682685 redundant_field_names:: REDUNDANT_FIELD_NAMES ,
686+ redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ,
683687 reference:: DEREF_ADDROF ,
684688 reference:: REF_IN_DEREF ,
685689 regex:: INVALID_REGEX ,
@@ -749,7 +753,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
749753 excessive_precision:: EXCESSIVE_PRECISION ,
750754 formatting:: SUSPICIOUS_ASSIGNMENT_FORMATTING ,
751755 formatting:: SUSPICIOUS_ELSE_FORMATTING ,
752- if_let_redundant_pattern_matching:: IF_LET_REDUNDANT_PATTERN_MATCHING ,
753756 infallible_destructuring_match:: INFALLIBLE_DESTRUCTURING_MATCH ,
754757 len_zero:: LEN_WITHOUT_IS_EMPTY ,
755758 len_zero:: LEN_ZERO ,
@@ -800,6 +803,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
800803 ptr:: PTR_ARG ,
801804 question_mark:: QUESTION_MARK ,
802805 redundant_field_names:: REDUNDANT_FIELD_NAMES ,
806+ redundant_pattern_matching:: REDUNDANT_PATTERN_MATCHING ,
803807 regex:: REGEX_MACRO ,
804808 regex:: TRIVIAL_REGEX ,
805809 returns:: LET_AND_RETURN ,
0 commit comments