rCore-Tutorial-v3
rCore-Tutorial-v3 copied to clipboard
The asm! has been stable since 1.59.0
trafficstars
The rust-toolchain is set to be 1.57.0 nightly. So the unstable feature asm can be used and the macro asm! is bring to the crate scope
But after the feature became stable, the usage #![feature(asm)] can not bring the macro asm! to the crate scope. I used rust 1.63 nightly to complie the source code. It seems that the only way to refer the macro asm is core::arch::asm!
But if you keep the rust complier version in 1.57.0, the compilation of dependency riscv will fail due to unreference of #![feature(asm)]
Yeah, maintainers were refactoring code for new version of rust. See ch2-dev branch and others.
For some chapters, you still need to modify it manually.