Function rustc_mir_build::build::expr::as_place::to_upvars_resolved_place_builder
source · [−]fn to_upvars_resolved_place_builder<'a, 'tcx>(
from_builder: PlaceBuilder<'tcx>,
tcx: TyCtxt<'tcx>,
upvars: &'a SortedIndexMultiMap<usize, HirId, Capture<'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.