@@ -1539,18 +1539,18 @@ fn check_for_loop_explicit_counter<'tcx>(
1539
1539
expr : & ' tcx Expr < ' _ > ,
1540
1540
) {
1541
1541
// Look for variables that are incremented once per loop iteration.
1542
- let mut visitor = IncrementVisitor :: new ( cx) ;
1543
- walk_expr ( & mut visitor , body) ;
1542
+ let mut increment_visitor = IncrementVisitor :: new ( cx) ;
1543
+ walk_expr ( & mut increment_visitor , body) ;
1544
1544
1545
1545
// For each candidate, check the parent block to see if
1546
1546
// it's initialized to zero at the start of the loop.
1547
1547
if let Some ( block) = get_enclosing_block ( & cx, expr. hir_id ) {
1548
- for id in visitor . into_results ( ) {
1549
- let mut visitor2 = InitializeVisitor :: new ( cx, expr, id) ;
1550
- walk_block ( & mut visitor2 , block) ;
1548
+ for id in increment_visitor . into_results ( ) {
1549
+ let mut initialize_visitor = InitializeVisitor :: new ( cx, expr, id) ;
1550
+ walk_block ( & mut initialize_visitor , block) ;
1551
1551
1552
1552
if_chain ! {
1553
- if let Some ( ( name, initializer) ) = visitor2 . get_result( ) ;
1553
+ if let Some ( ( name, initializer) ) = initialize_visitor . get_result( ) ;
1554
1554
if is_integer_const( cx, initializer, 0 ) ;
1555
1555
then {
1556
1556
let mut applicability = Applicability :: MachineApplicable ;
0 commit comments