diff options
author | Asahi Lina <[email protected]> | 2023-02-24 17:09:47 +0900 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2023-04-10 05:21:15 +0200 |
commit | 3c01a424a37fe625052c68c8620f6aa701f77769 (patch) | |
tree | 3cddd7f3563af9820c0f544b29567037d1319a24 /rust/alloc/vec/mod.rs | |
parent | f431c5c581fa176f608ba3fdebb3c1051bad5774 (diff) |
rust: Enable the new_uninit feature for kernel and driver crates
The unstable new_uninit feature enables various library APIs to create
uninitialized containers, such as `Box::assume_init()`. This is
necessary to build abstractions that directly initialize memory at the
target location, instead of doing copies through the stack.
Will be used by the DRM scheduler abstraction in the kernel crate, and
by field-wise initialization (e.g. using `place!()` or a future
replacement macro which may itself live in `kernel`) in driver crates.
Link: https://github.com/Rust-for-Linux/linux/issues/879
Link: https://github.com/Rust-for-Linux/linux/issues/2
Link: https://github.com/rust-lang/rust/issues/63291
Signed-off-by: Asahi Lina <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Reviewed-by: Andreas Hindborg <[email protected]>
Reviewed-by: Vincenzo Palazzo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Reworded to use `Link` tags. ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/alloc/vec/mod.rs')
0 files changed, 0 insertions, 0 deletions