repr_transparent_external_private_fields
lint is not totally clear about what exactly triggers the lint
#115956
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-repr
Area: the `#[repr(stuff)]` attribute
C-bug
Category: This is a bug.
L-repr_transparent_external_private_fields
Lint: repr_transparent_external_private_fields
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Originally posted by @RalfJung in #115924 (comment)
The lint should be clearer about the exact situation where non-exhaustive 1-ZSTs can be in
repr(transparent)
structs. After #115924, errors fire more accurately, but error messages are still not totally right in their verbiage.The text was updated successfully, but these errors were encountered: