mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 09:13:38 +00:00
rust: alloc: add Box
to prelude
Now that we removed `BoxExt` and the corresponding includes in prelude.rs, add the new kernel `Box` type instead. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Gary Guo <gary@garyguo.net> Signed-off-by: Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/r/20241004154149.93856-15-dakr@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
This commit is contained in:
parent
e8c6ccdbca
commit
e1044c2238
@ -14,7 +14,7 @@
|
||||
#[doc(no_inline)]
|
||||
pub use core::pin::Pin;
|
||||
|
||||
pub use crate::alloc::{flags::*, vec_ext::VecExt, KBox, KVBox, VBox};
|
||||
pub use crate::alloc::{flags::*, vec_ext::VecExt, Box, KBox, KVBox, VBox};
|
||||
|
||||
#[doc(no_inline)]
|
||||
pub use alloc::vec::Vec;
|
||||
|
Loading…
Reference in New Issue
Block a user