use alloc::alloc; #[inline] pub fn must_succeed(p: *mut T) -> *mut T { if p.is_null() { alloc::handle_alloc_error(alloc::Layout::new::()) } p }