Function try_new_allocation

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