needless_borrows_for_generic_arg seems to have introduced suggestions that break compilation for 1.80.0 #13218
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
Upgrading to Rust 1.80.0 has clippy making suggestions that break compilation of the code once applied.
Lint Name
needless_borrows_for_generic_args
Reproducer
I tried this code:
I saw this happen:
And once applied:
This is likely related to #13162 and #13170 but adding it for what could be a simpler example in case it helps.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: