LinkedList::remove forgets the allocator #125950
Labels
A-allocators
Area: Custom and system allocators
A-collections
Area: `std::collection`
C-bug
Category: This is a bug.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: alloc and dealloc is printed
Instead, this happened: only alloc is printed
Meta
rustc --version --verbose
:LinkedList::remove
forgets that it's been initialized with an allocator, and always deletes the node with the global allocator.rust/library/alloc/src/collections/linked_list.rs
Line 1708 in 1689a5a
There seems to be one more place where this happens in the same file.
The text was updated successfully, but these errors were encountered: