@@ -75,9 +75,9 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeLiveLocals {
75
75
return_places : CallReturnPlaces < ' _ , ' tcx > ,
76
76
) {
77
77
return_places. for_each ( |place| {
78
- YieldResumeEffect ( trans) . visit_place (
78
+ CallReturnEffect ( trans) . visit_place (
79
79
& place,
80
- PlaceContext :: MutatingUse ( MutatingUseContext :: Yield ) ,
80
+ PlaceContext :: MutatingUse ( MutatingUseContext :: Store ) ,
81
81
Location :: START ,
82
82
)
83
83
} ) ;
@@ -119,9 +119,9 @@ where
119
119
}
120
120
}
121
121
122
- struct YieldResumeEffect < ' a , T > ( & ' a mut T ) ;
122
+ struct CallReturnEffect < ' a , T > ( & ' a mut T ) ;
123
123
124
- impl < ' tcx , T > Visitor < ' tcx > for YieldResumeEffect < ' _ , T >
124
+ impl < ' tcx , T > Visitor < ' tcx > for CallReturnEffect < ' _ , T >
125
125
where
126
126
T : GenKill < Local > ,
127
127
{
@@ -292,9 +292,9 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> {
292
292
return_places : CallReturnPlaces < ' _ , ' tcx > ,
293
293
) {
294
294
return_places. for_each ( |place| {
295
- YieldResumeEffect ( trans) . visit_place (
295
+ CallReturnEffect ( trans) . visit_place (
296
296
& place,
297
- PlaceContext :: MutatingUse ( MutatingUseContext :: Yield ) ,
297
+ PlaceContext :: MutatingUse ( MutatingUseContext :: Store ) ,
298
298
Location :: START ,
299
299
)
300
300
} ) ;
0 commit comments