Skip to content

Commit eaa527d

Browse files
committed
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<SectorBuffer> = unsafe { Box::new_zeroed().assume_init() }; | ^^^^^^^^^^^^^^^ | = note: see issue #129396 <rust-lang/rust#129396> for more information = help: add `#![feature(new_zeroed_alloc)]` to the crate attributes to enable ```
1 parent 4bde778 commit eaa527d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![no_std]
33
#![deny(unsafe_op_in_unsafe_fn)]
44
#![feature(alloc_error_handler)]
5-
#![feature(new_uninit)]
5+
#![feature(new_zeroed_alloc)]
66

77
#[macro_use]
88
extern crate alloc;

0 commit comments

Comments
 (0)