File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1044,9 +1044,9 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
10441044 debug ! ( "resolve_expr - fixing up counts to {}" , visitor. expr_and_pat_count) ;
10451045
10461046 for scope in target_scopes {
1047- let ( span , count ) = visitor. scope_tree . yield_in_scope . get_mut ( & scope) . unwrap ( ) ;
1048- let count = * count ;
1049- let span = * span;
1047+ let mut yield_data = visitor. scope_tree . yield_in_scope . get_mut ( & scope) . unwrap ( ) ;
1048+ let count = yield_data . expr_and_pat_count ;
1049+ let span = yield_data . span ;
10501050
10511051 // expr_and_pat_count never decreases. Since we recorded counts in yield_in_scope
10521052 // before walking the left-hand side, it should be impossible for the recorded
@@ -1059,7 +1059,7 @@ fn resolve_expr<'tcx>(visitor: &mut RegionResolutionVisitor<'tcx>, expr: &'tcx h
10591059 debug ! ( "resolve_expr - increasing count for scope {:?} from {} to {} at span {:?}" ,
10601060 scope, count, new_count, span) ;
10611061
1062- visitor . scope_tree . yield_in_scope . insert ( scope , ( span , new_count) ) ;
1062+ yield_data . expr_and_pat_count = new_count;
10631063 }
10641064
10651065 }
You can’t perform that action at this time.
0 commit comments