transmute_undefined_repr: false positive on transmutes involving MaybeUninit #8498
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
MaybeUninit<T> has the same layout as T.
Lint Name
transmute_undefined_repr
Reproducer
Whether or not
Struct
has a defined layout shouldn't be relevant, since MaybeUninit<T> has the same layout as T regardless of the layout of T. This is similar to what happened in #8417.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: