ICE in FieldPlacement::count atop 32-bit host with 64-bit target #57038
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
While exploring building a cross-compiler and running the test suite on it, I found the following issue:
Using a
config.toml
with:and then doing
x.py test
eventually hits this problem:The reason for this ICE is due to a mistake in
rustc
's internal API here:rust/src/librustc_target/abi/mod.rs
Lines 710 to 721 in 6d34ec1
As @nagisa points out on Zulip, the compiler should not be using
usize
except for its own indices "and other memory-ey things"The text was updated successfully, but these errors were encountered: