Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build failure in Fedora #415

Closed
wants to merge 1 commit into from
Closed

Conversation

davide125
Copy link
Contributor

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 <https://github.com/rust-lang/rust/issues/129396> for more information
   = help: add `#![feature(new_zeroed_alloc)]` to the crate attributes to enable

```
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
```

Signed-off-by: Davide Cavalca <[email protected]>
@marcan
Copy link
Member

marcan commented Nov 3, 2024

Fixed in b901c27 (with backwards compat).

@marcan marcan closed this Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants