Safety comment on Allocator trait likely incorrect #107040
Labels
A-allocators
Area: Custom and system allocators
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
one of the safety requirements for the
Allocator
trait is:rust/library/core/src/alloc/mod.rs
Lines 97 to 99 in a28f3c8
afaict that's incorrect since, because of the validity requirements, it requires Allocators to never free any memory blocks until the Allocator and all clones are dropped.
It should instead be something like:
The text was updated successfully, but these errors were encountered: