feature `alloc_trait` can not compile with the current Rust version
Feature alloc_trait cannot compile because the interface core::alloc::Excess has been removed and core::alloc::Alloc is replaced by core::alloc::Allocator and its interfaces are changed.
I fixed it in my own repo by imitating std::alloc::System (PR), but I'm not sure if it's the best way.
Is there any advises for it?
Feel free to contribute it to jemallocator. Though we need to consider whether the implementation can be optimized for jemalloc specifically.
Hi, @MrCroxx. Do you have time to send a PR?
@BusyJay There was a PR and I've used it well for some time in my own project. But I'm not sure how the naive implementation works in more general cases. Feel free to reopen it.