@@ -601,15 +601,15 @@ fn check_for_loop<'tcx>(
601601 needless_range_loop:: check ( cx, pat, arg, body, expr) ;
602602 explicit_counter_loop:: check ( cx, pat, arg, body, expr) ;
603603 }
604- check_for_loop_arg ( cx, pat, arg, expr ) ;
605- for_kv_map:: check ( cx, pat, arg, body, expr ) ;
604+ check_for_loop_arg ( cx, pat, arg) ;
605+ for_kv_map:: check ( cx, pat, arg, body) ;
606606 mut_range_bound:: check ( cx, arg, body) ;
607607 single_element_loop:: check ( cx, pat, arg, body, expr) ;
608608 same_item_push:: check ( cx, pat, arg, body, expr) ;
609609 manual_flatten:: check ( cx, pat, arg, body, span) ;
610610}
611611
612- fn check_for_loop_arg ( cx : & LateContext < ' _ > , pat : & Pat < ' _ > , arg : & Expr < ' _ > , expr : & Expr < ' _ > ) {
612+ fn check_for_loop_arg ( cx : & LateContext < ' _ > , pat : & Pat < ' _ > , arg : & Expr < ' _ > ) {
613613 let mut next_loop_linted = false ; // whether or not ITER_NEXT_LOOP lint was used
614614
615615 if let ExprKind :: MethodCall ( method, _, [ self_arg] , _) = arg. kind {
@@ -622,7 +622,7 @@ fn check_for_loop_arg(cx: &LateContext<'_>, pat: &Pat<'_>, arg: &Expr<'_>, expr:
622622 explicit_into_iter_loop:: check ( cx, self_arg, arg) ;
623623 } ,
624624 "next" => {
625- next_loop_linted = iter_next_loop:: check ( cx, arg, expr ) ;
625+ next_loop_linted = iter_next_loop:: check ( cx, arg) ;
626626 } ,
627627 _ => { } ,
628628 }
0 commit comments