Skip to content

Make tuple variant and struct variant field visibility consistent #18607

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

Closed
sfackler opened this issue Nov 4, 2014 · 2 comments
Closed

Make tuple variant and struct variant field visibility consistent #18607

sfackler opened this issue Nov 4, 2014 · 2 comments

Comments

@sfackler
Copy link
Member

sfackler commented Nov 4, 2014

Tuple variant fields have inherited visibility, while struct variant fields can be tagged pub.

@steveklabnik
Copy link
Member

This kind of change would require an RFC, please persue one if you still want this change!

@sfackler
Copy link
Member Author

For posterity, this change has actually already been made, I just forgot to close the issue :)

lnicola added a commit to lnicola/rust that referenced this issue Dec 11, 2024
…d-no-record

fix: Fix shadowing of record enum variant in patterns
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

No branches or pull requests

2 participants