diff --git a/src/raw_block.rs b/src/raw_block.rs index 8282a94d3..da7574152 100644 --- a/src/raw_block.rs +++ b/src/raw_block.rs @@ -43,7 +43,10 @@ impl RawBlock { let layout = alloc::Layout::from_size_align_unchecked(cap, T::align()); let new_base = alloc::alloc(layout).cast_const(); if new_base.is_null() { - panic!("failed to allocate for init_at_size"); + panic!( + "failed to allocate in init_at_size for {}", + std::any::type_name::() + ); } self.base = new_base; self.top = self.base.add(cap);