Open
Description
Summary
I looked and this didn't look like any of the existing redundant_clone
false positives. Sometime between nightly-2022-10-01
and nightly-2023-03-18
(sorry for the wide range) clippy::redundant_clone
started false-positive firing here. If that clone()
call is removed, compilation fails due to index_on
being used here
Lint Name
clippy::redundant_clone
Reproducer
See links
Version
❯ rustc -Vv
rustc 1.70.0-nightly (4a04d086c 2023-03-18)
binary: rustc
commit-hash: 4a04d086cac54a41517d5657b59d5fe2caca2d71
commit-date: 2023-03-18
host: x86_64-unknown-linux-gnu
release: 1.70.0-nightly
LLVM version: 16.0.0
Additional Labels
No response