Rename YieldResumeEffect.
This commit is contained in:
parent
388f6a6413
commit
aa697f599e
1 changed files with 6 additions and 6 deletions
|
@ -75,9 +75,9 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeLiveLocals {
|
||||||
return_places: CallReturnPlaces<'_, 'tcx>,
|
return_places: CallReturnPlaces<'_, 'tcx>,
|
||||||
) {
|
) {
|
||||||
return_places.for_each(|place| {
|
return_places.for_each(|place| {
|
||||||
YieldResumeEffect(trans).visit_place(
|
CallReturnEffect(trans).visit_place(
|
||||||
&place,
|
&place,
|
||||||
PlaceContext::MutatingUse(MutatingUseContext::Yield),
|
PlaceContext::MutatingUse(MutatingUseContext::Store),
|
||||||
Location::START,
|
Location::START,
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
@ -119,9 +119,9 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct YieldResumeEffect<'a, T>(&'a mut T);
|
struct CallReturnEffect<'a, T>(&'a mut T);
|
||||||
|
|
||||||
impl<'tcx, T> Visitor<'tcx> for YieldResumeEffect<'_, T>
|
impl<'tcx, T> Visitor<'tcx> for CallReturnEffect<'_, T>
|
||||||
where
|
where
|
||||||
T: GenKill<Local>,
|
T: GenKill<Local>,
|
||||||
{
|
{
|
||||||
|
@ -292,9 +292,9 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> {
|
||||||
return_places: CallReturnPlaces<'_, 'tcx>,
|
return_places: CallReturnPlaces<'_, 'tcx>,
|
||||||
) {
|
) {
|
||||||
return_places.for_each(|place| {
|
return_places.for_each(|place| {
|
||||||
YieldResumeEffect(trans).visit_place(
|
CallReturnEffect(trans).visit_place(
|
||||||
&place,
|
&place,
|
||||||
PlaceContext::MutatingUse(MutatingUseContext::Yield),
|
PlaceContext::MutatingUse(MutatingUseContext::Store),
|
||||||
Location::START,
|
Location::START,
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue