-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: Adding -C save-temps
to incremental compile causes rustc_codegen_ssa::back::write panic
#66367
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
(the workaround is to make sure you start with |
(also, the reported "compiler flags" in the diagnostic says |
The panic is due to this assert failure in rust/src/librustc_codegen_ssa/back/write.rs Line 868 in a916ac2
My first instinct was to try to revise the logic so that we would force the code generation of the bytecode when But after thinking about it more, I do not think that is the appropriate fix. Someone adding So the question is, what is the correct fix here? I can imagine:
@michaelwoerister , any thoughts here? And also cc @alexcrichton, whom I believe is the source for these assertions way back in 8197a0b |
I would agree that the intention of |
Getting rid of the assertion seems fine. |
The assertion was removed by #71754. |
Triage: Seems quite easy to add a regression test for this ICE so it can be closed. See @rustbot label E-needs-test |
Steps to reproduce:
The text was updated successfully, but these errors were encountered: