-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
ICE: broken MIR in Item(WithOptConstParam { did: DefId(0:3 ~ reduced_mutant[8787]::test), const_param_did: None }) (after InstCombine in phase Optimization) at bb0[2]: Operand::Copy
with non-Copy
type &i32
#78806
Comments
The InstCombine transformation operates under assumption that I would recommend generating test cases without |
EDIT: Oops, I missed that this was explicitly running the MIR validator. It would be great if you could mention that in the summary in the future! |
Note that the MIR validator only fails with |
|
This is #9307, so closing in favor of that |
In case anyone's curious, this is the bisection: searched nightlies: from nightly-2020-01-01 to nightly-2020-11-09 bisected with cargo-bisect-rustc v0.6.0Host triple: x86_64-apple-darwin cargo bisect-rustc --preserve --regress=ice --start=2020-01-01 --end=2020-11-09 -- rustc -- -Zvalidate-mir However, the "regressed commit" is actually just a new MIR validation that was catching an existing bug, so it doesn't mean anything. |
Thanks, everyone, for the analysis. I have disabled the validation of mir on my end in the future testing. |
Well the MIR validator will still help you catch bugs, it's just that this particular bug is not significant because the code is somewhat bizarre. |
Yes, I'd rather suggest not using |
Thanks, @camelid and @jonas-schievink . I will enable this flag later. Currently my testing infrastructure has some problems with extracting crash signatures from stderr. This mainly because the ICE message usually contains some details about the program under compilation, and I rely on crash signatures to cluster duplicates. Moreover, sometimes, the ICE message and the panic message contains absolute paths of the source files in the rust compiler, such as When I address the problem above, I will enable this flag again. Thank you for your advices. I learned something new today. |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
NOTE: The bug is found by our work-in-progress compiler testing tool Kira, and the test program is reduced/minimized by Perses
The text was updated successfully, but these errors were encountered: