needless_borrow
and explicit_auto_deref
false positive with unions
#9383
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
Clippy suggests removing explicit
&mut
and*
derefs that are required by RFC 2514 when working with union fields.Lint Name
needless_borrow and explicit_auto_deref
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warnings, since both derefs are not automatically done by the compiler.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: