rustc_mir_transform::elaborate_box_derefs

Function build_projection

Source
pub(crate) fn build_projection<'tcx>(
    unique_ty: Ty<'tcx>,
    nonnull_ty: Ty<'tcx>,
    ptr_ty: Ty<'tcx>,
) -> [PlaceElem<'tcx>; 3]
Expand description

Constructs the projection needed to access a Box’s pointer