If-same-then-else bug for chained inequality expression #6285
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
I tried this code:
I expected to see this happen: everything works fine. Clippy does need to not complain. Both inequality chains within the two if conditions are different from each other.
Instead, this happened:
Meta
cargo clippy -V
: e.g. clippy 0.0.212 (18bf6b4f0 2020-10-07)rustc -Vv
:rustc 1.47.0 (18bf6b4f0 2020-10-07)
binary: rustc
commit-hash: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
commit-date: 2020-10-07
host: x86_64-pc-windows-msvc
release: 1.47.0
LLVM version: 11.0
The text was updated successfully, but these errors were encountered: