explicit_auto_deref interaction with ManuallyDrop #11474
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
Explicit derefs are recommended when using ManuallyDrop types, but the lint does not factor this in when recommending to auto deref.
Lint Name
explicit_auto_deref
Reproducer
Sample repro:
Warning produced:
When attempting to fix this we get:
So it seems like this case should be ignored by the rule, given the recommendation to explicitly deref.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: