Rename YieldResumeEffect.

This commit is contained in:
Camille GILLOT 2023-05-27 17:08:56 +00:00
parent 388f6a6413
commit aa697f599e

View File

@ -75,9 +75,9 @@ fn call_return_effect(
return_places: CallReturnPlaces<'_, 'tcx>,
) {
return_places.for_each(|place| {
YieldResumeEffect(trans).visit_place(
CallReturnEffect(trans).visit_place(
&place,
PlaceContext::MutatingUse(MutatingUseContext::Yield),
PlaceContext::MutatingUse(MutatingUseContext::Store),
Location::START,
)
});
@ -119,9 +119,9 @@ fn visit_local(&mut self, local: Local, context: PlaceContext, _: Location) {
}
}
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
T: GenKill<Local>,
{
@ -292,9 +292,9 @@ fn apply_call_return_effect(
return_places: CallReturnPlaces<'_, 'tcx>,
) {
return_places.for_each(|place| {
YieldResumeEffect(trans).visit_place(
CallReturnEffect(trans).visit_place(
&place,
PlaceContext::MutatingUse(MutatingUseContext::Yield),
PlaceContext::MutatingUse(MutatingUseContext::Store),
Location::START,
)
});