diff options
| author | Miguel Ojeda <[email protected]> | 2024-09-04 14:42:29 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-09-04 21:11:31 +0000 |
| commit | ab309b6e084c70a29f9fa3cee797572bd2340901 (patch) | |
| tree | d0dc23bdee49dd40bc2c40e4204d54991137522f /scripts/generate_rust_target.rs | |
| parent | MAINTAINERS: add Trevor Gross as Rust reviewer (diff) | |
| download | kernel-ab309b6e084c70a29f9fa3cee797572bd2340901.tar.gz kernel-ab309b6e084c70a29f9fa3cee797572bd2340901.zip | |
rust: avoid `box_uninit_write` feature
Like commit 0903b9e2a46c ("rust: alloc: eschew
`Box<MaybeUninit<T>>::write`"), but for the new `rbtree` and `alloc` code.
That is, `feature(new_uninit)` [1] got partially stabilized [2]
for Rust 1.82.0 (expected to be released on 2024-10-17), but it
did not include `Box<MaybeUninit<T>>::write`, which got split into
`feature(box_uninit_write)` [3].
To avoid relying on a new unstable feature, rewrite the `write` +
`assume_init` pair manually.
Link: https://github.com/rust-lang/rust/issues/63291 [1]
Link: https://github.com/rust-lang/rust/pull/129401 [2]
Link: https://github.com/rust-lang/rust/issues/129397 [3]
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Matt Gilbride <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions
