Skip to content

privacy: Permit pub items in blocks#31919

Merged
bors merged 3 commits into
rust-lang:masterfrom
petrochenkov:blockpub
Mar 2, 2016
Merged

privacy: Permit pub items in blocks#31919
bors merged 3 commits into
rust-lang:masterfrom
petrochenkov:blockpub

Conversation

@petrochenkov
Copy link
Copy Markdown
Contributor

Closes #31776

r? @nikomatsakis

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

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

@petrochenkov
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@bors r+

@bors
Copy link
Copy Markdown
Collaborator

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