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

build failed when using rust 1.82.0-nightly #60

Open
logeable opened this issue Aug 22, 2024 · 1 comment
Open

build failed when using rust 1.82.0-nightly #60

logeable opened this issue Aug 22, 2024 · 1 comment

Comments

@logeable
Copy link

The error infos is as follows:

❯ cargo make
    Finished `release` profile [optimized] target(s) in 0.04s
     Running `target/release/xtask make`
   Compiling rustsbi-qemu v0.2.0-alpha.3 (/Users/logeable/workstation/repos/rustsbi-qemu/rustsbi-qemu)
error: the feature `asm_const` has been stable since 1.82.0-nightly and no longer requires an attribute to enable
 --> rustsbi-qemu/src/main.rs:3:29
  |
3 | #![feature(naked_functions, asm_const)]
  |                             ^^^^^^^^^
  |
note: the lint level is defined here
 --> rustsbi-qemu/src/main.rs:4:9
  |
4 | #![deny(warnings)]
  |         ^^^^^^^^
  = note: `#[deny(stable_features)]` implied by `#[deny(warnings)]`

error: could not compile `rustsbi-qemu` (bin "rustsbi-qemu") due to 1 previous error
thread 'main' panicked at /Users/logeable/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-2eab394af869c8a2/os-xtask-utils-0.0.0/src/lib.rs:110:13:
Failed with code 101: "cargo build --package rustsbi-qemu --release --target riscv64imac-unknown-none-elf"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It seems that the 'asm_const' feature is stable in rust 1.82.0-nightly.

@NoeTerrier
Copy link

It seems like it can be safely removed!

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

No branches or pull requests

2 participants