about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorKevin Reid <kpreid@switchb.org>2025-01-24 22:00:17 -0800
committerKevin Reid <kpreid@switchb.org>2025-03-04 10:49:13 -0800
commit206737569741970865cdc6d5347994b971aa2af8 (patch)
treea4b0d164ea19df2af8899af1f2a313e0ce394547 /compiler/rustc_codegen_llvm/src
parent2440f516965ea948e9d04e56c63beee36deb8848 (diff)
downloadrust-206737569741970865cdc6d5347994b971aa2af8.tar.gz
rust-206737569741970865cdc6d5347994b971aa2af8.zip
Make `struct_field_names` lint on private fields of public structs.
Currently, If a struct is `pub` and its field is private, and
`avoid-breaking-exported-api = true` (default), then `struct_field_names`
will not lint the field, even though changing the field’s name is not a
breaking change. This is because the breaking-exported-api condition was
checking the visibility of the struct, not its fields (perhaps because
the same code was used for enums). With this change, Clippy will check
 the field’s effective visibility only.

Note: This change is large because some functions were moved into an
`impl` to be able to access more configuration. Consider viewing the
diff with whitespace ignored.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions