redundant-clone: false positive with assert_eq!() #5973
Labels
C-bug
Category: Clippy is not doing the correct thing
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
T-MIR
Type: This lint will require working with the MIR
I tried this code:
I expected to see this happen: no lints
Instead, this happened: got a
redundant-clone
warning.This seems similar to #5700 or #5595, but maybe not quite the same?
Meta
cargo clippy -V
: 0.0.212 (2020-08-26 2d8a3b9)rustc -Vv
:(I wonder if the number of false positives reported here are contributing to redudant clone also being relatively high on the commonly ignored lints list from #5418.)
The text was updated successfully, but these errors were encountered: