Skip to content

Implement Error trait for uefi::Error #587

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

Merged
merged 5 commits into from
Nov 27, 2022

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 :)

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.

2 participants