Function rustc_mir_build::build::expr::as_place::to_upvars_resolved_place_builder
source · [−]fn to_upvars_resolved_place_builder<'tcx>(
from_builder: PlaceBuilder<'tcx>,
cx: &Builder<'_, 'tcx>
) -> Result<PlaceBuilder<'tcx>, PlaceBuilder<'tcx>>
Expand description
Takes a PlaceBuilder and resolves the upvar (if any) within it, so that the
PlaceBuilder
now starts from PlaceBase::Local
.
Returns a Result with the error being the PlaceBuilder (from_builder
) that was not found.