about summary refs log tree commit diff
path: root/tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-22 21:38:02 +0000
committerGitHub <noreply@github.com>2025-08-22 21:38:02 +0000
commit3a3d3e4a29bcc6376c8fc70e059fc2317398c8e3 (patch)
treea16df37df4f4e545b63c003d3bed1c5dfa00c97e /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs
parentdf0499a5edbd668b7ba4c8666c11bb8a063fb3f7 (diff)
parentc2c3e0990b4430cd2ce9c27b1eb8ff5dd57091cb (diff)
downloadrust-3a3d3e4a29bcc6376c8fc70e059fc2317398c8e3.tar.gz
rust-3a3d3e4a29bcc6376c8fc70e059fc2317398c8e3.zip
`bool_comparison`: no longer lint on `!x != y` (#15498)
The issue that this PR was opened to fix
(https://github.com/rust-lang/rust-clippy/issues/15367), talked about
how, for `!x == false`, this lint suggests both:
1. `x != false`
2. `x`

I initially wanted to make the lint short-circuit after emitting the
first suggestion (since that was the easier change code-wise), but that
was not optimal for two reasons:
1. suggestion 2 is obviously better (the other one requires one more
round of Clippy)
2. suggestion 1 is actually already covered by `nonminimal_bool`

And so I instead decided to completely remove the code path that emits
suggestion 1.

Fixes https://github.com/rust-lang/rust-clippy/issues/15367

changelog: [`bool_comparison`]: no longer lint on `!x != y`
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions