Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify the lifetimes of allocations returned by the
Allocator
trait
The previous definition (accidentally) disallowed the implementation of stack-based allocators whose memory would become invalid once the lifetime of the allocator type ended. This also ensures the validity of the following blanket implementation: ```rust impl<A: Allocator> Allocator for &'_ A {} ```
- Loading branch information