rustc_smir::rustc_smir::alloc

Function try_new_allocation

source
pub(crate) fn try_new_allocation<'tcx>(
    ty: Ty<'tcx>,
    const_value: ConstValue<'tcx>,
    tables: &mut Tables<'tcx>,
) -> Result<Allocation, Error>