Skip to content

Commit 407fec4

Browse files
committed
Unstable features: reword to mention that the alloc fork is now gone
We could just remove it instead, but I thought it would not hurt keeping it reworded for a couple releases or so. Reported-by: Christian Schrefl <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 6105696 commit 407fec4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Unstable-features.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,8 @@ Moreover, most of the features are only allowed within the `kernel` crate, i.e.
3232

3333
If you would like to use a new Rust unstable feature in the kernel, then please [contact us](Contact.md).
3434

35-
### `alloc`
35+
### `alloc` (older releases)
3636

3737
[`alloc`](https://doc.rust-lang.org/alloc/) is part of the Rust standard library and its implementation uses many unstable features. Normally, this library (as well as [`core`](https://doc.rust-lang.org/core/) and others) is provided by the compiler, and thus those unstable features do not break users' code.
3838

39-
Currently, the kernel contains a fork of `alloc` (matched to the supported Rust version by the kernel) with some additions on top. This complicates compiling the kernel with a different compiler version due to those unstable features, but this fork is meant to be temporary: the original plan for `alloc` discussed with upstream Rust (and others) is documented in-tree in the [`rust/alloc/README.md`](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/rust/alloc/README.md?h=v6.6) file.
40-
41-
Discussions with upstream Rust are ongoing to see what the eventual solution for `alloc` will be.
39+
In older releases, the kernel contained a fork of `alloc` (matched to the supported Rust version by the kernel) with some additions on top. This complicated compiling the kernel with a different compiler version due to those unstable features, but this fork was meant to be temporary, and eventually it got dropped in v6.10. The original plan for `alloc` discussed with upstream Rust (and others) was documented in-tree in the [`rust/alloc/README.md`](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/rust/alloc/README.md?h=v6.6) file.

0 commit comments

Comments
 (0)