unnecessary_sort_by suggests broken code #5813
Labels
C-bug
Category: Clippy is not doing the correct thing
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
I tried this code:
Clippy suggested
but the suggestion does not compile:
Meta
cargo clippy -V
: e.g. clippy 0.0.212 (346aec9 2020-07-11)rustc -Vv
:binary: rustc
commit-hash: 346aec9
commit-date: 2020-07-11
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0
The text was updated successfully, but these errors were encountered: