-
Couldn't load subscription status.
- Fork 8
Description
After rust-lang/rust#128651 merged in nightly toolchain, we should use #[unsafe(naked)] instead of #[naked].
As #3 has tried to fix this question, but it just fixed the code in the test-app. And the code in the fast-trap/src/hal/riscv/mod.rs still use #[naked], so the project build cargo xtask make --arch rv64:m fails as follows:
error: unsafe attribute used without unsafe
--> fast-trap/src/hal/riscv/mod.rs:111:3
|
111 | #[naked]
| ^^^^^ usage of unsafe attribute
|
help: wrap the attribute in `unsafe(...)`
|
111 | #[unsafe(naked)]
| +++++++ +
error: unsafe attribute used without unsafe
--> fast-trap/src/hal/riscv/mod.rs:129:3
|
129 | #[naked]
| ^^^^^ usage of unsafe attribute
|
help: wrap the attribute in `unsafe(...)`
|
129 | #[unsafe(naked)]
| +++++++ +
warning: `fast-trap` (lib) generated 1 warning
error: could not compile `fast-trap` (lib) due to 2 previous errors; 1 warning emitted
And I have found that the #4 have fixed this question which has been closed, so I suggest to reopen and merge the #4 . (If needed, I can send a pr again.)
I encounter this issue when I try to compile the rustsbi and I'm really new to this project, if there is any question in my operations, please point it out to me.