about summary refs log tree commit diff
path: root/compiler/rustc_llvm/src
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2024-06-06 21:10:10 -0700
committerGitHub <noreply@github.com>2024-06-06 21:10:10 -0700
commit6a42df75178d73f271ab564ab46087ab10bde13d (patch)
tree85370a79ac5a49e4aafed00416470a7de7db85e1 /compiler/rustc_llvm/src
parent75aa9d12197856caf23991cc1249e9097943766f (diff)
parent89d86ae5bd221b14ec7a444062413dd81ecbf6d6 (diff)
downloadrust-6a42df75178d73f271ab564ab46087ab10bde13d.tar.gz
rust-6a42df75178d73f271ab564ab46087ab10bde13d.zip
Rollup merge of #126040 - Urgau:unreachable_pub-fields-less, r=petrochenkov
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``
Diffstat (limited to 'compiler/rustc_llvm/src')
0 files changed, 0 insertions, 0 deletions