-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Reconsider default-public struct fields #11809
Comments
When we close this we should add an explanation to the design faq (#4047) to cement it. |
There's some discussion of this in #8122. |
I'm still in favor of the (I'm only talking about implementing it with respect to structs; further comments from others on #8122 discussed generalizing it to handle enum and struct tuples as well, but its not obvious to be whether such generalization is a good idea.) |
Accepted for 1.0, P-backcompat-lang. |
…exendoo Change `if_same_then_else` to be a `style` lint CC rust-lang#3770 From rust-lang/rust-clippy#3770 (comment) (`@flip1995):` > Oh I thought I replied to this: I definitely see now that having this > as a correctness lint might be the wrong categorization. What we might > want to do is to just allow this lint, if there are comments in the > arm bodies. But a good first step would be to downgrade this lint to > style or complexity. I would vote for style since merging two arms is > not always less complex. changelog: [`if_same_then_else`]: Change to be a `style` lint
Not sure if there's an issue for this, but I continue to see pull requests to hide incorrectly-public struct fields. I realize this has been beaten to death, but I still feel this is the wrong default that will continue to bite us. Nominating.
The text was updated successfully, but these errors were encountered: