Skip to content

Commit

Permalink
Fix build failure in Fedora
Browse files Browse the repository at this point in the history
```
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
```
  • Loading branch information
davide125 committed Oct 30, 2024
1 parent 4bde778 commit eaa527d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eaa527d

Please sign in to comment.