rust: kernel: remove usage of `allocator_api` unstable feature
authorWedson Almeida Filho <walmeida@microsoft.com>
Thu, 28 Mar 2024 01:36:03 +0000 (22:36 -0300)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 16 Apr 2024 20:50:04 +0000 (22:50 +0200)
commit2c1092853f163762ef0aabc551a630ef233e1be3
treed49d456fdfd45916303181e188956f1f9e8d9bef
parentc34aa00d1d7dd482dc48660ad594cb693334de2d
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>
rust/kernel/alloc.rs
rust/kernel/alloc/box_ext.rs
rust/kernel/alloc/vec_ext.rs
rust/kernel/error.rs
rust/kernel/init.rs
rust/kernel/lib.rs
rust/kernel/str.rs
rust/kernel/sync/arc.rs
rust/kernel/workqueue.rs