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

fn to_upvars_resolved_place_builder<'a, 'tcx>(
    from_builder: PlaceBuilder<'tcx>,
    tcx: TyCtxt<'tcx>,
    typeck_results: &'a TypeckResults<'tcx>
) -> Result<PlaceBuilder<'tcx>, HirId>

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 HirId of the Upvar that was not found.