-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Clarify that expr
/stmt
in macros can may only be followed by one of: => , ;
#34069
Comments
I'm working on cleaning up the follow set checker to make this easier. |
cc @LeoTestard |
@durka Did that cleanup ever happen? The errors are still the same today. |
Um... I have no idea what I was planning to do. |
What should be done (IMO) is to refactor format!("{} cannot be followed by {} -- the follow set is {}",
frag_spec, actual_token, follow_sets[frag_spec]) |
Issue triage: Issue still present, and still very annoying. This should probably be labeled |
List allowed tokens after macro fragments Fix rust-lang#34069.
List allowed tokens after macro fragments Fix rust-lang#34069.
List allowed tokens after macro fragments Fix rust-lang#34069.
For the code:
https://is.gd/TFIoq1
The compiler would give the following errors for this
I think it would be better if the error clarified that
expr
/stmt
in macros can may only be followed by one of: => , ;The text was updated successfully, but these errors were encountered: