Update Allocator Designs post for #806

This commit is contained in:
Philipp Oppermann
2020-05-20 10:54:52 +02:00
parent 052fc405ad
commit a79cea1cd6

View File

@@ -774,8 +774,6 @@ In the second step it uses the [`max`] method to enforce a minimum allocation si
[`pad_to_align`]: https://doc.rust-lang.org/core/alloc/struct.Layout.html#method.pad_to_align
[`max`]: https://doc.rust-lang.org/std/cmp/trait.Ord.html#method.max
Both the `align_to` and the `pad_to_align` methods are still unstable. To enable then, we need to add **`#![feature(alloc_layout_extra)]`** to the beginning of our `lib.rs`.
### Using it
We can now update the `ALLOCATOR` static in the `allocator` module to use our new `LinkedListAllocator`: