Use Alloc and Layout from core::heap.
94d1970b moved the alloc::allocator module to core::heap, moving e.g. Alloc and Layout out of the alloc crate. While alloc::heap reexports them, it's better to use them from where they really come from.
Showing
想要评论请 注册 或 登录