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

Forbid priv where it has no effect #8363

Closed
wants to merge 1 commit into from

Conversation

alexcrichton
Copy link
Member

This is everywhere except struct fields and enum variants.

This addresses concerns that I had in #8122, but it doesn't remove the keyword yet because it's still useful.

This is everywhere except struct fields and enum variants.
@pcwalton
Copy link
Contributor

pcwalton commented Aug 7, 2013

I'm in favor of this change but neglected to make it to the meeting on time to bring it up. @graydon ?

@bstrie
Copy link
Contributor

bstrie commented Aug 7, 2013

Regardless of #8122, would this address the priv half of #5495?

@alexcrichton
Copy link
Member Author

I think the one remaining part of the issue would be to forbid visibility qualifiers on trait methods and on methods of trait implementations (if they're not already forbidden).

Otherwise pub is already forbidden on impl and there wouldn't be priv any more.

@emberian
Copy link
Member

emberian commented Aug 8, 2013

Closing; in my rollup.

@emberian emberian closed this Aug 8, 2013
@pnkfelix
Copy link
Member

pnkfelix commented Aug 8, 2013

rollup in question: #8385

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.

5 participants