rustc_const_eval::const_eval::valtrees

Function reconstruct_place_meta

source
fn reconstruct_place_meta<'tcx>(
    layout: TyAndLayout<'tcx>,
    valtree: ValTree<'tcx>,
    tcx: TyCtxt<'tcx>,
) -> MemPlaceMeta
Expand description

Valtrees don’t store the MemPlaceMeta that all dynamically sized values have in the interpreter. This function reconstructs it.