-
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
Compiler hangs and eats memory on malformed macro extension #37234
Comments
bors
added a commit
that referenced
this issue
Nov 11, 2016
Don't spin expanding stmt macros. If we can't make progress when parsing a macro expansion as a statement then we should just bail. This alleviates the symptoms shown in e.g. #37113 and #37234 but it doesn't fix the problem that parsing invalid enum bodies (and others) leaves the parser in a crappy state. I'm not sold on this strategy (checking `tokens_consumed`), so if anyone has a better idea, I'm all ears!
Closing.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rustc successfully detects error, but then never returns and starts eating memory
Version info:
I'm using version from Debian (unstable) repository.
The text was updated successfully, but these errors were encountered: