Function rustc_mir_build::build::expr::as_place::to_upvars_resolved_place_builder[][src]

fn to_upvars_resolved_place_builder<'a, 'tcx>(
    from_builder: PlaceBuilder<'tcx>,
    tcx: TyCtxt<'tcx>,
    typeck_results: &'a TypeckResults<'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.