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 9ffe2a7 commit 2d49505Copy full SHA for 2d49505
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