-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustc runs out of memory after reporting faulty macro #33136
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
Can confirm that this reproduces on
|
I did a bit of debugging and think that something like the following happens: The parser encounters an error while parsing the expanded macro and enters recovery mode: It recovers until the closing brace but does not consume it. That brace is not considered the EOF, thus the expander repeatedly attempts to parse another statement / item. Logfiles for all three cases end in endless lines of cc @nrc, I think this is your area of expertise.
|
Closing, this compiles without errors today. |
Rustc runs out of memory when parsing this (faulty) code:
I ran this command:
Then it allocated extreme amounts of memory and after a few minutes this happened:
Meta
The same thing happens on 1.8 stable GNU, though.
The text was updated successfully, but these errors were encountered: