-
- Downloads
"README.md" did not exist on "server-1.20-branch"
rust: kernel: remove usage of `allocator_api` unstable feature
With the adoption of `BoxExt` and `VecExt`, we don't need the functions provided by this feature (namely the methods prefixed with `try_` and different allocator per collection instance). We do need `AllocError`, but we define our own as it is a trivial empty struct. Reviewed-by:Benno Lossin <benno.lossin@proton.me> Signed-off-by:
Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20240328013603.206764-11-wedsonaf@gmail.com Signed-off-by:
Miguel Ojeda <ojeda@kernel.org>
Showing
- rust/kernel/alloc.rs 4 additions, 0 deletionsrust/kernel/alloc.rs
- rust/kernel/alloc/box_ext.rs 1 addition, 2 deletionsrust/kernel/alloc/box_ext.rs
- rust/kernel/alloc/vec_ext.rs 2 additions, 2 deletionsrust/kernel/alloc/vec_ext.rs
- rust/kernel/error.rs 2 additions, 2 deletionsrust/kernel/error.rs
- rust/kernel/init.rs 1 addition, 2 deletionsrust/kernel/init.rs
- rust/kernel/lib.rs 0 additions, 1 deletionrust/kernel/lib.rs
- rust/kernel/str.rs 1 addition, 2 deletionsrust/kernel/str.rs
- rust/kernel/sync/arc.rs 2 additions, 2 deletionsrust/kernel/sync/arc.rs
- rust/kernel/workqueue.rs 1 addition, 2 deletionsrust/kernel/workqueue.rs
Loading
Please register or sign in to comment