Skip to content
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

Merged
merged 3 commits into from
Sep 29, 2015

Conversation

petrochenkov
Copy link
Contributor

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

}
TyPath(ref maybe_qself, ref path) => {
if let Some(ref qself) = *maybe_qself {
for qself in maybe_qself {
Copy link
Member

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?

Copy link
Contributor Author

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

@nrc
Copy link
Member

nrc commented Sep 28, 2015

Nice! walk_list! in particular is great.

r=me without the if let -> for changes.

@petrochenkov
Copy link
Contributor Author

@nrc
Updated.

@nrc
Copy link
Member

nrc commented Sep 29, 2015

@bors: r+

@bors
Copy link
Contributor

bors commented Sep 29, 2015

📌 Commit 4764d98 has been approved by nrc

@bors
Copy link
Contributor

bors commented Sep 29, 2015

⌛ Testing commit 4764d98 with merge 59eb444...

bors added a commit that referenced this pull request Sep 29, 2015
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
@bors bors merged commit 4764d98 into rust-lang:master Sep 29, 2015
@petrochenkov petrochenkov deleted the visit branch November 22, 2015 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants