-use std::alloc::{AllocInit, AllocRef, Global, Layout, MemoryBlock, System};
+use std::alloc::{AllocInit, AllocRef, Global, Layout, System};
/// Issue #45955 and #62251.
#[test]
// Clean up
for &ptr in &pointers {
- allocator.dealloc(MemoryBlock::new(
- ptr,
- Layout::from_size_align(size, align).unwrap(),
- ))
+ allocator.dealloc(ptr, Layout::from_size_align(size, align).unwrap())
}
}
}