@@ -227,6 +227,7 @@ mod identity_op;
227227mod if_let_mutex;
228228mod if_let_some_result;
229229mod if_not_else;
230+ mod if_then_panic;
230231mod if_then_some_else_none;
231232mod implicit_hasher;
232233mod implicit_return;
@@ -658,6 +659,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
658659 if_let_mutex:: IF_LET_MUTEX ,
659660 if_let_some_result:: IF_LET_SOME_RESULT ,
660661 if_not_else:: IF_NOT_ELSE ,
662+ if_then_panic:: IF_THEN_PANIC ,
661663 if_then_some_else_none:: IF_THEN_SOME_ELSE_NONE ,
662664 implicit_hasher:: IMPLICIT_HASHER ,
663665 implicit_return:: IMPLICIT_RETURN ,
@@ -1253,6 +1255,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12531255 LintId :: of( identity_op:: IDENTITY_OP ) ,
12541256 LintId :: of( if_let_mutex:: IF_LET_MUTEX ) ,
12551257 LintId :: of( if_let_some_result:: IF_LET_SOME_RESULT ) ,
1258+ LintId :: of( if_then_panic:: IF_THEN_PANIC ) ,
12561259 LintId :: of( indexing_slicing:: OUT_OF_BOUNDS_INDEXING ) ,
12571260 LintId :: of( infinite_iter:: INFINITE_ITER ) ,
12581261 LintId :: of( inherent_to_string:: INHERENT_TO_STRING ) ,
@@ -1508,6 +1511,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15081511 LintId :: of( functions:: MUST_USE_UNIT ) ,
15091512 LintId :: of( functions:: RESULT_UNIT_ERR ) ,
15101513 LintId :: of( if_let_some_result:: IF_LET_SOME_RESULT ) ,
1514+ LintId :: of( if_then_panic:: IF_THEN_PANIC ) ,
15111515 LintId :: of( inherent_to_string:: INHERENT_TO_STRING ) ,
15121516 LintId :: of( len_zero:: COMPARISON_TO_EMPTY ) ,
15131517 LintId :: of( len_zero:: LEN_WITHOUT_IS_EMPTY ) ,
@@ -2135,6 +2139,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
21352139 store. register_late_pass ( move || Box :: new ( self_named_constructors:: SelfNamedConstructors ) ) ;
21362140 store. register_late_pass ( move || Box :: new ( feature_name:: FeatureName ) ) ;
21372141 store. register_late_pass ( move || Box :: new ( iter_not_returning_iterator:: IterNotReturningIterator ) ) ;
2142+ store. register_late_pass ( move || Box :: new ( if_then_panic:: IfThenPanic ) ) ;
21382143}
21392144
21402145#[ rustfmt:: skip]
0 commit comments