@@ -294,6 +294,7 @@ mod question_mark;
294294mod ranges;
295295mod redundant_clone;
296296mod redundant_closure_call;
297+ mod redundant_else;
297298mod redundant_field_names;
298299mod redundant_pub_crate;
299300mod redundant_static_lifetimes;
@@ -831,6 +832,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
831832 & ranges:: REVERSED_EMPTY_RANGES ,
832833 & redundant_clone:: REDUNDANT_CLONE ,
833834 & redundant_closure_call:: REDUNDANT_CLOSURE_CALL ,
835+ & redundant_else:: REDUNDANT_ELSE ,
834836 & redundant_field_names:: REDUNDANT_FIELD_NAMES ,
835837 & redundant_pub_crate:: REDUNDANT_PUB_CRATE ,
836838 & redundant_static_lifetimes:: REDUNDANT_STATIC_LIFETIMES ,
@@ -1132,6 +1134,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11321134 store. register_early_pass ( || box items_after_statements:: ItemsAfterStatements ) ;
11331135 store. register_early_pass ( || box precedence:: Precedence ) ;
11341136 store. register_early_pass ( || box needless_continue:: NeedlessContinue ) ;
1137+ store. register_early_pass ( || box redundant_else:: RedundantElse ) ;
11351138 store. register_late_pass ( || box create_dir:: CreateDir ) ;
11361139 store. register_early_pass ( || box needless_arbitrary_self_type:: NeedlessArbitrarySelfType ) ;
11371140 store. register_early_pass ( || box redundant_static_lifetimes:: RedundantStaticLifetimes ) ;
@@ -1308,6 +1311,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13081311 LintId :: of( & pass_by_ref_or_value:: TRIVIALLY_COPY_PASS_BY_REF ) ,
13091312 LintId :: of( & ranges:: RANGE_MINUS_ONE ) ,
13101313 LintId :: of( & ranges:: RANGE_PLUS_ONE ) ,
1314+ LintId :: of( & redundant_else:: REDUNDANT_ELSE ) ,
13111315 LintId :: of( & ref_option_ref:: REF_OPTION_REF ) ,
13121316 LintId :: of( & shadow:: SHADOW_UNRELATED ) ,
13131317 LintId :: of( & strings:: STRING_ADD_ASSIGN ) ,
0 commit comments