Skip to content

Commit 374908a

Browse files
committed
rust: remove leftover mentions of the alloc crate
In commit 392e34b ("kbuild: rust: remove the `alloc` crate and `GlobalAlloc`") we stopped using the upstream `alloc` crate. Thus remove a few leftover mentions treewide. Cc: stable@vger.kernel.org # Also to 6.12.y after the `alloc` backport lands Fixes: 392e34b ("kbuild: rust: remove the `alloc` crate and `GlobalAlloc`") Reviewed-by: Danilo Krummrich <dakr@kernel.org> Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20250303171030.1081134-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 7eb1721 commit 374908a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Documentation/rust/quick-start.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Rust standard library source
145145
****************************
146146

147147
The Rust standard library source is required because the build system will
148-
cross-compile ``core`` and ``alloc``.
148+
cross-compile ``core``.
149149

150150
If ``rustup`` is being used, run::
151151

rust/kernel/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! usage by Rust code in the kernel and is shared by all of them.
77
//!
88
//! In other words, all the rest of the Rust code in the kernel (e.g. kernel
9-
//! modules written in Rust) depends on [`core`], [`alloc`] and this crate.
9+
//! modules written in Rust) depends on [`core`] and this crate.
1010
//!
1111
//! If you need a kernel C API that is not ported or wrapped yet here, then
1212
//! do so first instead of bypassing this crate.

scripts/rustdoc_test_gen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
//! - Test code should be able to define functions and call them, without having to carry
1616
//! the context.
1717
//!
18-
//! - Later on, we may want to be able to test non-kernel code (e.g. `core`, `alloc` or
19-
//! third-party crates) which likely use the standard library `assert*!` macros.
18+
//! - Later on, we may want to be able to test non-kernel code (e.g. `core` or third-party
19+
//! crates) which likely use the standard library `assert*!` macros.
2020
//!
2121
//! For this reason, instead of the passed context, `kunit_get_current_test()` is used instead
2222
//! (i.e. `current->kunit_test`).

0 commit comments

Comments
 (0)