-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Compiler hang on function return type #75860
Comments
With |
Some hot functions while ram is being consumed
|
I have the same issue, with my own code. When I run |
@danylaporte Can you provide the source code needed to reproduce that? The reproduction we have so far also hangs on 1.45.2 and older. |
@jonas-schievink Sorry, the code is private and I cannot produce a repro easily. |
Assigning |
…acrum Add regression test for mutual recursion in obligation forest Add regression test for rust-lang#75860 with a slightly smaller example. I was looking at what caused the issue and was surprised when it errors out on nightly, so I just added a regression test which should effectively close the issue, altho it would be nice to find the fix for reference. Also I found that 80066 is not fixed by whatever fixed 75860.
As of the latest nightly this no longer hangs, and now errors. |
Using docker I verified that this hangs all the way back to EDIT: I was not aware of |
To be clear, this now produces the specific error:
I don't think we need to bisect down to the specific point where this was fixed. (If someone eventually has time to do it, great, but its not a reason to keep this issue open.) A test very close to what was posted in the description was added in PR #80429, so this really is done now. |
While coding for a kata challenge (this one to be exact), the compiler hung when I tried to compile the code below, probably getting stuck trying to determine the return type.
It's late so I'll look into making the code more concrete tomorrow (if this doesn't turn out to be known)
Code
Original code
EDIT: The smallest I could get it. The compiler won't hang if I
MCVE:
Meta
rustc --version --verbose
:Same for nightly:
Error output
Hung compiler, so no output or backtrace
The text was updated successfully, but these errors were encountered: