-
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
unhygienic named labels allowed in macros #9171
Labels
A-syntaxext
Area: Syntax extensions
Comments
cc @jbclements |
This code compiles on today's master, and it sounds like it shouldn't. |
No, I think that's fine. We've never made any attempt to impose hygiene on labels. I suppose it depends on what you mean by "shouldn't." I agree that it might be nice to implement hygiene for labels ... |
After #12338, rustc now gives an error:
So this probably could be closed. |
Hurray! Thanks @edwardw! |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Jul 18, 2022
Update highlight.js changelog: none With [highlight.js v11.6.0](https://github.com/highlightjs/highlight.js/releases/tag/11.6.0), the lint list can finally update from `9.5.0`. No more EOL warning in console! 😄 I also made it switch to the `github-dark` theme when using `coal`, instead of just always using the normal github light theme. r? `@xFrednet`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hygiene currently prevents capturing variables but does not prevent you from capturing named labels.
For example:
Note, this currently causes a bus error in rustc, but probably otherwise works, and used to work before let hygiene was added.
The text was updated successfully, but these errors were encountered: