eq_op should be allowed to optionally support function calls #13827
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Uh oh!
There was an error while loading. Please reload this page.
Summary
Ability to check function calls was removed back in #230 and mentioned in description:
and removed ability to actually catch few more bugs.
I agree, that by default it will emit false positives, so this added check should be allowed to turn on manually via lint configuration (https://doc.rust-lang.org/clippy/configuration.html#configuring-clippy).
There few bug examples that should be discoverable by clippy rust-lang/rust#134214 #13820 rust-lang/rustc_codegen_gcc#579
It isn't strictly FN issue, more like improvement suggestion.
Lint Name
eq_op
Reproducer
Well, it's expected to emit no warn as there currently no option to turn check for calls on.
I tried this code:
I expected to see this happen:
warn about equal parts in
i0.last() == i0.last()
Instead, this happened:
no warn
Version
The text was updated successfully, but these errors were encountered: