Skip to content

Compile failed on rustc 1.59.0-nightly #329

Closed
@Martins3

Description

@Martins3

Hi, I can't compile the template following the instructions:

After doing some search on Google, I found this:

It seems below minor modification can solve the problem:

diff --git a/uefi-services/src/lib.rs b/uefi-services/src/lib.rs
index c60621b..a2c066d 100644
--- a/uefi-services/src/lib.rs
+++ b/uefi-services/src/lib.rs
@@ -18,7 +18,6 @@

 #![no_std]
 #![feature(alloc_error_handler)]
-#![feature(asm)]
 #![feature(lang_items)]
 #![feature(panic_info_message)]
 #![feature(abi_efiapi)]
@@ -30,6 +29,7 @@ extern crate uefi;

 use core::ffi::c_void;
 use core::ptr::NonNull;
+use core::arch::asm;

 use cfg_if::cfg_if;

./build.py run would fail out of the same reason.

I'm just a beginner of Rust, maybe I'm wrong, thanks for your attention in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions