Closed haraldh closed 3 years ago
Due to nightly changes, AllocRef was renamed Allocator and the methods don't take a &mut self anymore. Therefore Heap cannot implement Allocator anymore. Implement it for LockedHeap instead, which requires the use_spin feature.
AllocRef
Allocator
&mut self
Heap
LockedHeap
use_spin
Thanks a lot!
Due to nightly changes,
AllocRef
was renamedAllocator
and the methods don't take a&mut self
anymore. ThereforeHeap
cannot implementAllocator
anymore. Implement it forLockedHeap
instead, which requires theuse_spin
feature.