Skip to content

Make errors for unnecessary visibility qualifiers consistent #32071

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

Merged
merged 2 commits into from
Mar 9, 2016

Conversation

jseyfried
Copy link
Contributor

This PR refactors away syntax::parse::parser::ParsePub so that unnecessary visibility qualifiers on variant fields are reported not by the parser but by privacy::SanePrivacyVisitor (thanks to @petrochenkov's drive-by improvements in #31919).

r? @nikomatsakis

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Mar 8, 2016

📌 Commit 498059b has been approved by nikomatsakis

@bors
Copy link
Collaborator

bors commented Mar 9, 2016

⌛ Testing commit 498059b with merge bb868f1...

bors added a commit that referenced this pull request Mar 9, 2016
Make errors for unnecessary visibility qualifiers consistent

This PR refactors away `syntax::parse::parser::ParsePub` so that unnecessary visibility qualifiers on variant fields are reported not by the parser but by `privacy::SanePrivacyVisitor` (thanks to @petrochenkov's drive-by improvements in #31919).

r? @nikomatsakis
@bors bors merged commit 498059b into rust-lang:master Mar 9, 2016
@jseyfried jseyfried deleted the parse_pub branch March 25, 2016 22:56
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