Skip to content

Compilation Failure on the Latest Rust Nightly Compiler #220

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

Closed
HTGAzureX1212 opened this issue May 19, 2021 · 0 comments · Fixed by #221
Closed

Compilation Failure on the Latest Rust Nightly Compiler #220

HTGAzureX1212 opened this issue May 19, 2021 · 0 comments · Fixed by #221

Comments

@HTGAzureX1212
Copy link
Contributor

UEFI crate version: 0.9.0

Rust compiler metadata: rustc --version --verbose

rustc 1.54.0-nightly (4e3e6db01 2021-05-18)
binary: rustc
commit-hash: 4e3e6db011c5b482d2bef8ba02274657f93b5e0d
commit-date: 2021-05-18
host: x86_64-pc-windows-msvc
release: 1.54.0-nightly
LLVM version: 12.0.1

Errors:

error[E0437]: type `Ok` is not a member of trait `ops::Try`
   --> <path redacted>\uefi-0.9.0\src\result\status.rs:175:5
175 |     type Ok = Completion<()>;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `ops::Try`

error[E0437]: type `Error` is not a member of trait `ops::Try`
   --> <path redacted>\uefi-0.9.0\src\result\status.rs:176:5
    |
176 |     type Error = Error<()>;
    |     ^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `ops::Try`

error[E0407]: method `into_result` is not a member of trait `ops::Try`
   --> <path redacted>\uefi-0.9.0\src\result\status.rs:178:5
    |
178 | /     fn into_result(self) -> Result<(), ()> {
179 | |         self.into()
180 | |     }
    | |_____^ not a member of trait `ops::Try`

error[E0407]: method `from_error` is not a member of trait `ops::Try`
   --> <path redacted>\uefi-0.9.0\src\result\status.rs:182:5
    |
182 | /     fn from_error(error: Self::Error) -> Self {
183 | |         error.status()
184 | |     }
    | |_____^ not a member of trait `ops::Try`

error[E0407]: method `from_ok` is not a member of trait `ops::Try`
   --> <path redacted>\uefi-0.9.0\src\result\status.rs:186:5
    |
186 | /     fn from_ok(ok: Self::Ok) -> Self {
187 | |         ok.status()
188 | |     }
    | |_____^ not a member of trait `ops::Try`

error[E0658]: use of unstable library feature 'try_trait_v2'
   --> <path redacted>\uefi-0.9.0\src\result\status.rs:174:6
    |
174 | impl ops::Try for Status {
    |      ^^^^^^^^
    |
    = note: see issue #84277 <https://github.com/rust-lang/rust/issues/84277> for more information
    = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable

error[E0220]: associated type `Error` not found for `Self`
   --> <path redacted>\uefi-0.9.0\src\result\status.rs:182:32
    |
182 |     fn from_error(error: Self::Error) -> Self {
    |                                ^^^^^ associated type `Error` not found

error[E0220]: associated type `Ok` not found for `Self`
   --> <path redacted>\uefi-0.9.0\src\result\status.rs:186:26
    |
186 |     fn from_ok(ok: Self::Ok) -> Self {
    |                          ^^ associated type `Ok` not found

error: aborting due to 8 previous errors
gifnksm added a commit to gifnksm/sabios that referenced this issue May 19, 2021
due to uefi-rs compilation failure

rust-osdev/uefi-rs#220
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 a pull request may close this issue.

1 participant