mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
6a42df7517
Don't warn on fields in the `unreachable_pub` lint This PR restrict the `unreachable_pub` lint by not linting on `pub` fields of `pub(restricted)` structs and unions. This is done because that can quickly clutter the code for an uncertain value, in particular since the "real" visibility is defined by the parent (the struct it-self). This is meant to address one of the last concern of the `unreachable_pub` lint. r? ``@petrochenkov`` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |