Skip to content

Commit e1044c2

Browse files
Danilo Krummrichojeda
authored andcommitted
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>
1 parent e8c6ccd commit e1044c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#[doc(no_inline)]
1515
pub use core::pin::Pin;
1616

17-
pub use crate::alloc::{flags::*, vec_ext::VecExt, KBox, KVBox, VBox};
17+
pub use crate::alloc::{flags::*, vec_ext::VecExt, Box, KBox, KVBox, VBox};
1818

1919
#[doc(no_inline)]
2020
pub use alloc::vec::Vec;

0 commit comments

Comments
 (0)