-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: invalid field type in Immediate::offset: value Scalar(0x0000000000000000) does not match ABI ScalarPair(..)
#136442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This ICEs even without any flags:
Cc @oli-obk |
According to the playground this is fixed on nightly |
Ah, so ICE in the type system is gone... but it seems like the resulting program is still somehow broken, as it can cause an ICE in MIR opts. Cc @rust-lang/wg-mir-opt Here's the ICE with debug info and debug assertions (so it fails a bit earlier as we do more consistency checks):
Something, somewhere, is creating a value of type |
Adding
And, I mean |
The concrete source of the ICE is this in the post-inlining MIR:
(I had to patch the compiler to make it not ICE when dumping this MIR) I think this is the Cc @lcnr @compiler-errors -- the code in the OP used to ICE, this got "fixed" by just accepting the code but that's wrong, it needs to be rejected since it is ill-typed. |
snippet:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zmir-enable-passes=+Inline -Zmir-enable-passes=+JumpThreading --crate-type=lib
Program output
cc #135020
The text was updated successfully, but these errors were encountered: