@@ -75,9 +75,9 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeLiveLocals {
7575 return_places : CallReturnPlaces < ' _ , ' tcx > ,
7676 ) {
7777 return_places. for_each ( |place| {
78- YieldResumeEffect ( trans) . visit_place (
78+ CallReturnEffect ( trans) . visit_place (
7979 & place,
80- PlaceContext :: MutatingUse ( MutatingUseContext :: Yield ) ,
80+ PlaceContext :: MutatingUse ( MutatingUseContext :: Store ) ,
8181 Location :: START ,
8282 )
8383 } ) ;
@@ -119,9 +119,9 @@ where
119119 }
120120}
121121
122- struct YieldResumeEffect < ' a , T > ( & ' a mut T ) ;
122+ struct CallReturnEffect < ' a , T > ( & ' a mut T ) ;
123123
124- impl < ' tcx , T > Visitor < ' tcx > for YieldResumeEffect < ' _ , T >
124+ impl < ' tcx , T > Visitor < ' tcx > for CallReturnEffect < ' _ , T >
125125where
126126 T : GenKill < Local > ,
127127{
@@ -292,9 +292,9 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> {
292292 return_places : CallReturnPlaces < ' _ , ' tcx > ,
293293 ) {
294294 return_places. for_each ( |place| {
295- YieldResumeEffect ( trans) . visit_place (
295+ CallReturnEffect ( trans) . visit_place (
296296 & place,
297- PlaceContext :: MutatingUse ( MutatingUseContext :: Yield ) ,
297+ PlaceContext :: MutatingUse ( MutatingUseContext :: Store ) ,
298298 Location :: START ,
299299 )
300300 } ) ;
0 commit comments