@@ -376,6 +376,7 @@ mod vec;
376376mod vec_init_then_push;
377377mod vec_resize_to_zero;
378378mod verbose_file_reads;
379+ mod while_let_some_result;
379380mod wildcard_dependencies;
380381mod wildcard_imports;
381382mod write;
@@ -988,6 +989,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
988989 vec_init_then_push:: VEC_INIT_THEN_PUSH ,
989990 vec_resize_to_zero:: VEC_RESIZE_TO_ZERO ,
990991 verbose_file_reads:: VERBOSE_FILE_READS ,
992+ while_let_some_result:: WHILE_LET_SOME_RESULT ,
991993 wildcard_dependencies:: WILDCARD_DEPENDENCIES ,
992994 wildcard_imports:: ENUM_GLOB_USE ,
993995 wildcard_imports:: WILDCARD_IMPORTS ,
@@ -1468,6 +1470,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
14681470 LintId :: of( vec:: USELESS_VEC ) ,
14691471 LintId :: of( vec_init_then_push:: VEC_INIT_THEN_PUSH ) ,
14701472 LintId :: of( vec_resize_to_zero:: VEC_RESIZE_TO_ZERO ) ,
1473+ LintId :: of( while_let_some_result:: WHILE_LET_SOME_RESULT ) ,
14711474 LintId :: of( write:: PRINTLN_EMPTY_STRING ) ,
14721475 LintId :: of( write:: PRINT_LITERAL ) ,
14731476 LintId :: of( write:: PRINT_WITH_NEWLINE ) ,
@@ -1580,6 +1583,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
15801583 LintId :: of( unsafe_removed_from_name:: UNSAFE_REMOVED_FROM_NAME ) ,
15811584 LintId :: of( unused_unit:: UNUSED_UNIT ) ,
15821585 LintId :: of( upper_case_acronyms:: UPPER_CASE_ACRONYMS ) ,
1586+ LintId :: of( while_let_some_result:: WHILE_LET_SOME_RESULT ) ,
15831587 LintId :: of( write:: PRINTLN_EMPTY_STRING ) ,
15841588 LintId :: of( write:: PRINT_LITERAL ) ,
15851589 LintId :: of( write:: PRINT_WITH_NEWLINE ) ,
@@ -1972,6 +1976,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
19721976 store. register_late_pass ( || box missing_inline:: MissingInline ) ;
19731977 store. register_late_pass ( move || box exhaustive_items:: ExhaustiveItems ) ;
19741978 store. register_late_pass ( || box if_let_some_result:: OkIfLet ) ;
1979+ store. register_late_pass ( || box while_let_some_result:: WhileLetSomeResult ) ;
19751980 store. register_late_pass ( || box partialeq_ne_impl:: PartialEqNeImpl ) ;
19761981 store. register_late_pass ( || box unused_io_amount:: UnusedIoAmount ) ;
19771982 let enum_variant_size_threshold = conf. enum_variant_size_threshold ;
0 commit comments