Skip to content

Commit acc45b8

Browse files
Danilo Krummrichojeda
Danilo Krummrich
authored andcommitted
rust: alloc: remove VecExt extension
Now that all existing `Vec` users were moved to the kernel `Vec` type, remove the `VecExt` extension. Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Gary Guo <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent a8d8156 commit acc45b8

File tree

3 files changed

+1
-190
lines changed

3 files changed

+1
-190
lines changed

rust/kernel/alloc.rs

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pub mod allocator;
77
pub mod kbox;
88
pub mod kvec;
99
pub mod layout;
10-
pub mod vec_ext;
1110

1211
#[cfg(any(test, testlib))]
1312
pub mod allocator_test;

rust/kernel/alloc/vec_ext.rs

-185
This file was deleted.

rust/kernel/prelude.rs

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

17-
pub use crate::alloc::{flags::*, vec_ext::VecExt, Box, KBox, KVBox, KVVec, KVec, VBox, VVec};
18-
19-
#[doc(no_inline)]
20-
pub use alloc::vec::Vec;
17+
pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec};
2118

2219
#[doc(no_inline)]
2320
pub use macros::{module, pin_data, pinned_drop, vtable, Zeroable};

0 commit comments

Comments
 (0)