-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Fill in some missing parts in the default AST and HIR visitors #28715
Conversation
+ Add helper macro for walking lists (including Options)
} | ||
TyPath(ref maybe_qself, ref path) => { | ||
if let Some(ref qself) = *maybe_qself { | ||
for qself in maybe_qself { |
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.
Not sure I like this change - if let
seems more appropriate than for
here - why the change?
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.
It's just.. shorter, and doesn't have ()=*
s
Nice! r=me without the |
@nrc |
@bors: r+ |
📌 Commit 4764d98 has been approved by |
Some minor parts of AST and HIR were not visited by the `visit::walk_xxx` methods - some identifiers, lifetimes, loop labels, attributes of exported macros - but nothing as serious as in, for example, #28364. \+ Added a convenience macro for visiting lists (including Options) \+ Removed some pre-Deref-coersions `&**` noise from visitors r? @nrc
Some minor parts of AST and HIR were not visited by the
visit::walk_xxx
methods - some identifiers, lifetimes, loop labels, attributes of exported macros - but nothing as serious as in, for example, #28364.&**
noise from visitorsr? @nrc