From db70f67d6e016beb8ef4cfc1832431366ae9a400 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Wed, 30 Oct 2024 09:54:54 -0700 Subject: [PATCH] Fix build failure in Fedora ``` warning: the feature `new_uninit` has been stable since 1.82.0 and no longer requires an attribute to enable --> src/lib.rs:5:12 | 5 | #![feature(new_uninit)] | ^^^^^^^^^^ | = note: `#[warn(stable_features)]` on by default error[E0658]: use of unstable library feature 'new_zeroed_alloc' --> src/nvme.rs:20:41 | 20 | let p: Box = unsafe { Box::new_zeroed().assume_init() }; | ^^^^^^^^^^^^^^^ | = note: see issue #129396 for more information = help: add `#![feature(new_zeroed_alloc)]` to the crate attributes to enable ``` Signed-off-by: Davide Cavalca --- rust/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 23ffd7a26..62800efc0 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -2,7 +2,7 @@ #![no_std] #![deny(unsafe_op_in_unsafe_fn)] #![feature(alloc_error_handler)] -#![feature(new_uninit)] +#![feature(new_zeroed_alloc)] #[macro_use] extern crate alloc;