-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
expansion/hygiene: Some renaming, refactoring and comments #51726
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
r? @abonander or @oli-obk |
Thanks for including me but I never understood the hygiene system very well anyway. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@oli-obk |
Move `is_builtin` for `Mark` to a separate flag
…n detail and cannot be inspected outside of `hygiene.rs`
Updated. |
+ one more refactoring commit |
This PR is going to murder clippy xD @bors r+ |
📌 Commit 20ce910 has been approved by |
expansion/hygiene: Some renaming, refactoring and comments Pure refactoring, no functional changes. Commits are isolated and self-descriptive.
☀️ Test successful - status-appveyor, status-travis |
@@ -85,9 +85,6 @@ impl ProcMacro for Quoter { | |||
_: ::syntax_pos::Span, | |||
stream: tokenstream::TokenStream) | |||
-> tokenstream::TokenStream { | |||
let mut info = cx.current_expansion.mark.expn_info().unwrap(); | |||
info.callee.allow_internal_unstable = true; | |||
cx.current_expansion.mark.set_expn_info(info); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this work, exactly? Does it rely on hygiene instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, I see that SyntaxExtension::ProcMacro
got an extra field.
Pure refactoring, no functional changes.
Commits are isolated and self-descriptive.