From aa697f599e8060ca05ee8f56dc1bd19c73911503 Mon Sep 17 00:00:00 2001 From: Camille GILLOT Date: Sat, 27 May 2023 17:08:56 +0000 Subject: [PATCH] Rename YieldResumeEffect. --- compiler/rustc_mir_dataflow/src/impls/liveness.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/rustc_mir_dataflow/src/impls/liveness.rs b/compiler/rustc_mir_dataflow/src/impls/liveness.rs index fbe1209092c4..a1f60c84b12e 100644 --- a/compiler/rustc_mir_dataflow/src/impls/liveness.rs +++ b/compiler/rustc_mir_dataflow/src/impls/liveness.rs @@ -75,9 +75,9 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeLiveLocals { 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 @@ 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 T: GenKill, { @@ -292,9 +292,9 @@ impl<'a, 'tcx> Analysis<'tcx> for MaybeTransitiveLiveLocals<'a> { 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, ) });