@@ -291,6 +291,7 @@ mod needless_bool;
291291mod needless_borrow;
292292mod needless_borrowed_ref;
293293mod needless_continue;
294+ mod needless_for_each;
294295mod needless_pass_by_value;
295296mod needless_question_mark;
296297mod needless_update;
@@ -781,7 +782,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
781782 & methods:: CLONE_DOUBLE_REF ,
782783 & methods:: CLONE_ON_COPY ,
783784 & methods:: CLONE_ON_REF_PTR ,
784- & methods:: EXCESSIVE_FOR_EACH ,
785785 & methods:: EXPECT_FUN_CALL ,
786786 & methods:: EXPECT_USED ,
787787 & methods:: FILETYPE_IS_FILE ,
@@ -868,6 +868,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
868868 & needless_borrow:: NEEDLESS_BORROW ,
869869 & needless_borrowed_ref:: NEEDLESS_BORROWED_REFERENCE ,
870870 & needless_continue:: NEEDLESS_CONTINUE ,
871+ & needless_for_each:: NEEDLESS_FOR_EACH ,
871872 & needless_pass_by_value:: NEEDLESS_PASS_BY_VALUE ,
872873 & needless_question_mark:: NEEDLESS_QUESTION_MARK ,
873874 & needless_update:: NEEDLESS_UPDATE ,
@@ -1046,6 +1047,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
10461047 store. register_late_pass ( || box ptr_eq:: PtrEq ) ;
10471048 store. register_late_pass ( || box needless_bool:: NeedlessBool ) ;
10481049 store. register_late_pass ( || box needless_bool:: BoolComparison ) ;
1050+ store. register_late_pass ( || box needless_for_each:: NeedlessForEach ) ;
10491051 store. register_late_pass ( || box approx_const:: ApproxConstant ) ;
10501052 store. register_late_pass ( || box misc:: MiscLints ) ;
10511053 store. register_late_pass ( || box eta_reduction:: EtaReduction ) ;
@@ -1314,7 +1316,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13141316 LintId :: of( & matches:: WILDCARD_ENUM_MATCH_ARM ) ,
13151317 LintId :: of( & mem_forget:: MEM_FORGET ) ,
13161318 LintId :: of( & methods:: CLONE_ON_REF_PTR ) ,
1317- LintId :: of( & methods:: EXCESSIVE_FOR_EACH ) ,
13181319 LintId :: of( & methods:: EXPECT_USED ) ,
13191320 LintId :: of( & methods:: FILETYPE_IS_FILE ) ,
13201321 LintId :: of( & methods:: GET_UNWRAP ) ,
@@ -1325,6 +1326,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
13251326 LintId :: of( & missing_doc:: MISSING_DOCS_IN_PRIVATE_ITEMS ) ,
13261327 LintId :: of( & missing_inline:: MISSING_INLINE_IN_PUBLIC_ITEMS ) ,
13271328 LintId :: of( & modulo_arithmetic:: MODULO_ARITHMETIC ) ,
1329+ LintId :: of( & needless_for_each:: NEEDLESS_FOR_EACH ) ,
13281330 LintId :: of( & panic_in_result_fn:: PANIC_IN_RESULT_FN ) ,
13291331 LintId :: of( & panic_unimplemented:: PANIC ) ,
13301332 LintId :: of( & panic_unimplemented:: TODO ) ,
0 commit comments