FN: iter_cloned_collect with a large array #6808
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Lint name:
iter_cloned_collect
I tried this code:
I expected to see this happened:
iter_cloned_collect
is triggered.Instead, this happened: nothing.
Meta
cargo clippy -V
: clippy 0.0.212 (cb75ad5 2021-02-10)rustc -Vv
:I think this is caused by
derefs_to_slice
and I suppose we should useexpr_ty_adjusted
instead ofmay_slice
to handlecoercion
in the function.The text was updated successfully, but these errors were encountered: