Skip to content

Conversation

blitz
Copy link
Contributor

@blitz blitz commented Nov 25, 2022

In order to use error-handling crates, such as anyhow, the uefi::Error type needs to implement the Error trait.

To do this, I had to bump the minimum nightly version a couple of days to enable the error_in_core feature.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

@@ -41,6 +41,7 @@
#![feature(maybe_uninit_slice)]
#![feature(negative_impls)]
#![feature(ptr_metadata)]
#![feature(error_in_core)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in another PR, we're going to want to gate new unstable features behind an unstable feature in the UEFI crate: https://github.com/rust-osdev/uefi-rs/pull/584/files#r1031848552

However, we haven't merged in the new feature gate yet, so I think I'll go ahead and merge this PR, and update #590 to put this behind the unstable fate.

@nicholasbishop
Copy link
Member

Thanks for the PR :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants