-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler crashes on malformed macro #23389
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
This was referenced Mar 26, 2015
Another case: Playpen: http://is.gd/CYZPiW |
I had a crash in a bad macro which hits the same bug as @vi. Note that his/her error has the following which is a different stack trace:
I'm on the latest beta; not nightly. |
This was referenced Jun 12, 2015
bossmc
added a commit
to bossmc/rust
that referenced
this issue
Jul 24, 2015
bors
added a commit
that referenced
this issue
Jul 25, 2015
…matsakis This introduces a test for #23389 and improves the error behaviour to treat the malformed LHS as an error, not a compiler bug. The parse phase that precedes the call to `check_lhs_nt_follows` could possibly be enhanced to police the format itself (which the old code suggests was the original intention), but I'm not sure that's any nicer than just parsing the matcher as generic rust code and then policing the specific requirements for being a macro matcher afterwards (as this does). Fixes #23389
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simple malformed macro makes the compiler crash.
Code:
Playpen error:
Playpen: http://is.gd/COoZe7
The text was updated successfully, but these errors were encountered: