-
Notifications
You must be signed in to change notification settings - Fork 13k
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 on recursive struct #62838
Comments
The crash seems to involve the incremental compilation mechanism. Triggering the ICE once will "store" it in the target folder, so you need to do a clean build to check whether a modified input still reproduces the bug. I'll try to minimise the example. |
The bug stopped reproducing on clean builds even though I changed nothing. I'm really confused... |
Checking in from the compiler team: Is this a regression? I'm going to mark as P-medium as it seems to be "just an ICE" at this point. |
Not to say we shouldn't fix it, mind you =) @NieDzejkob thanks for your efforts to minimize! @sgrif are you still able to reproduce? |
I agree this is "just an ICE", and should be prioritized as such -- especially since the code to reproduce it would fail to compile anyway. I'm not sure what the first version where this occurs is. I can still reproduce on the latest nightly. I get a more specific compiler error:
|
I will note that I had to change that line to |
This might be the same issue as #61323. What do you think? |
This is a dup of #61323 indeed. Thanks for pointing it out @ackxolotl |
Closing as a dupe |
repro code:
https://gist.github.com/sgrif/959bb5f820a0c9a616f569ea2195ff7c
Expression
on line 68 should beBox<Expression>
, introducing the indirection fixes the ICE. I haven't attempted to reduce beyond this example.rustc 1.36.0 (a53f9df32 2019-07-03)
The text was updated successfully, but these errors were encountered: