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

privacy: Permit pub items in blocks #31919

Merged
merged 3 commits into from
Mar 2, 2016
Merged

Conversation

petrochenkov
Copy link
Contributor

Closes #31776

r? @nikomatsakis

Check that variant fields are not marked public by syntax extensions
@pnkfelix
Copy link
Member

@petrochenkov do you think we should add some new tests based on the examples you posted here: #31776 (comment) ?

@petrochenkov
Copy link
Contributor Author

Both privacy in blocks, privacy in public etc are tested separately somewhere else, but I've added a new test with examples from #31776 (comment) just in case.

@nikomatsakis
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Mar 1, 2016

📌 Commit b6f441d has been approved by nikomatsakis

Manishearth added a commit to Manishearth/rust that referenced this pull request Mar 2, 2016
bors added a commit that referenced this pull request Mar 2, 2016
@bors bors merged commit b6f441d into rust-lang:master Mar 2, 2016
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
@petrochenkov petrochenkov deleted the blockpub branch September 21, 2016 19:51
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.

4 participants