rustc_mir_build::builder::expr::as_place

Function to_upvars_resolved_place_builder

Source
fn to_upvars_resolved_place_builder<'tcx>(
    cx: &Builder<'_, 'tcx>,
    var_hir_id: LocalVarId,
    closure_def_id: LocalDefId,
    projection: &[PlaceElem<'tcx>],
) -> Option<PlaceBuilder<'tcx>>
Expand description

Takes an upvar place and tries to resolve it into a PlaceBuilder with PlaceBase::Local