Skip to content

Commit 405966e

Browse files
Danilo Krummrichojeda
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 <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-21-dakr@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 58eff8e commit 405966e

File tree

3 files changed

+1
-190
lines changed

3 files changed

+1
-190
lines changed

rust/kernel/alloc.rs

Lines changed: 0 additions & 1 deletion
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

Lines changed: 0 additions & 185 deletions
This file was deleted.

rust/kernel/prelude.rs

Lines changed: 1 addition & 4 deletions
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)