We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
allocator
alloc
1 parent a321f3a commit 0efa82eCopy full SHA for 0efa82e
rust/kernel/alloc.rs
@@ -0,0 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0
2
+
3
+//! Extensions to the [`alloc`] crate.
4
5
+#[cfg(not(test))]
6
+#[cfg(not(testlib))]
7
+mod allocator;
rust/kernel/allocator.rs renamed to rust/kernel/alloc/allocator.rs
rust/kernel/lib.rs
@@ -27,9 +27,7 @@ compile_error!("Missing kernel configuration for conditional compilation");
27
// Allow proc-macros to refer to `::kernel` inside the `kernel` crate (this crate).
28
extern crate self as kernel;
29
30
-#[cfg(not(test))]
31
-#[cfg(not(testlib))]
32
-mod allocator;
+pub mod alloc;
33
mod build_assert;
34
pub mod error;
35
pub mod init;
0 commit comments