Regression in lint for non-exhaustive ZST in repr(Transparent)
#115922
Labels
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Lifted from #78586
I believe this future compatibility warning was badly affected by #115334. Minimal repro:
As far as I understand what this issue is about, this code should be 100% fine. This issue is about preventing a previously-accepted
repr(transparent)
struct from ending up with contents which a transparent struct is not allowed to have, after a permissible size increase of a non-exhaustive formerly-ZST from a different crate.That's not possible in the code above.
Transparent
continues to be a validrepr(transparent)
struct ifZeroSizedNonExhaustive
increases in size.Regression in nightly-2023-09-18:
@RalfJung @compiler-errors
Originally posted by @dtolnay in #78586 (comment)
The text was updated successfully, but these errors were encountered: