rCore-Tutorial-v3 icon indicating copy to clipboard operation
rCore-Tutorial-v3 copied to clipboard

The asm! has been stable since 1.59.0

Open sigongzi opened this issue 3 years ago • 1 comments
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)]

sigongzi avatar Jul 05 '22 03:07 sigongzi

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.

kkocdko avatar Jul 07 '22 00:07 kkocdko