Simple for
statement can be broken with linker error since nightly-2021-06-10-x86_64-unknown-linux-gnu
#87103
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
O-x86_64
Target: x86-64 processors (like x86_64-*)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Minimal reproducible code:
.cargo/config.toml
main.rs
These code above would raise following rust-lld error.
This linker error is not observed when I use
nightly-2021-06-09-x86_64-unknown-linux-gnu
or comment out the emptyfor
statement in KernelMain. This issue was reproduced in the other environment also by my friend.I assume #86003 is related to this problem but I'm not so much sure why these change can cause this problem. I would happy to provide further more investigation if it was needed.
The text was updated successfully, but these errors were encountered: