rust-osdev / linked-list-allocator

Apache License 2.0
219 stars 53 forks source link

fix(alloc_ref): Use new nightly Allocator trait #42

Closed haraldh closed 3 years ago

haraldh commented 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.

phil-opp commented 3 years ago

Thanks a lot!