Re: [PATCH v2 10/10] rust: kernel: remove usage of `allocator_api` unstable feature

From: Benno Lossin
Date: Wed Mar 27 2024 - 13:20:05 EST


On 27.03.24 03:35, Wedson Almeida Filho wrote:
> From: Wedson Almeida Filho <walmeida@xxxxxxxxxxxxx>
>
> 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.
>
> Signed-off-by: Wedson Almeida Filho <walmeida@xxxxxxxxxxxxx>
> ---
> rust/kernel/alloc.rs | 4 ++++
> rust/kernel/alloc/box_ext.rs | 3 +--
> rust/kernel/alloc/vec_ext.rs | 4 ++--
> rust/kernel/error.rs | 4 ++--
> rust/kernel/init.rs | 3 +--
> rust/kernel/lib.rs | 1 -
> rust/kernel/str.rs | 3 +--
> rust/kernel/sync/arc.rs | 4 ++--
> rust/kernel/workqueue.rs | 3 +--
> 9 files changed, 14 insertions(+), 15 deletions(-)

Reviewed-by: Benno Lossin <benno.lossin@xxxxxxxxx>

--
Cheers,
Benno