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

Apply visit_path to import prefixes by default #33854

Merged
merged 1 commit into from
May 28, 2016

Conversation

petrochenkov
Copy link
Contributor

@petrochenkov petrochenkov commented May 24, 2016

Overriding visit_path is not enough to visit all paths, some import prefixes are not visited and visit_path_list_item needs to be overridden as well. This PR removes this catch, it should be less error prone this way. Also, the prefix is visited once now, not repeatedly for each path list item.

r? @eddyb

@eddyb
Copy link
Member

eddyb commented May 24, 2016

@bors r+

@bors
Copy link
Contributor

bors commented May 24, 2016

📌 Commit 40285ca has been approved by eddyb

Manishearth added a commit to Manishearth/rust that referenced this pull request May 28, 2016
Apply visit_path to import prefixes by default

Overriding `visit_path` is not enough to visit all paths, some import prefixes are not visited and `visit_path_list_item` need to be overridden as well. This PR removes this catch, it should be less error prone this way. Also, the prefix is visited once now, not repeatedly for each path list item.

r? @eddyb
bors added a commit that referenced this pull request May 28, 2016
Rollup of 15 pull requests

- Successful merges: #33820, #33821, #33822, #33824, #33825, #33831, #33832, #33848, #33849, #33852, #33854, #33856, #33859, #33860, #33861
- Failed merges:
@bors bors merged commit 40285ca into rust-lang:master May 28, 2016
@petrochenkov petrochenkov deleted the prefvis branch September 21, 2016 19:57
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