Re: [PATCH v4 11/28] rust: alloc: remove `BoxExt` extension

Benno Lossin
2024-08-08T06:48:21Z

On 05.08.24 17:19, Danilo Krummrich wrote:
> Now that all existing `Box` users were moved to the kernel `Box` type,
> remove the `BoxExt` extension.

In the changes below you also remove the `new_uninit` feature, the
`impl InPlaceInit for Box` and the `impl ForeignOwnable for Box` but
don't mention it here.

---
Cheers,
Benno

> Reviewed-by: Alice Ryhl <aliceryhl@google.com>
> Signed-off-by: Danilo Krummrich <dakr@kernel.org>
> ---
> rust/kernel/alloc.rs | 1 -
> rust/kernel/alloc/box_ext.rs | 56 ------------------------------------
> rust/kernel/init.rs | 34 +---------------------
> rust/kernel/lib.rs | 1 -
> rust/kernel/prelude.rs | 4 +--
> rust/kernel/types.rs | 23 ---------------
> 6 files changed, 3 insertions(+), 116 deletions(-)
> delete mode 100644 rust/kernel/alloc/box_ext.rs