False positive for unnecessary_sort_by lint: Suggestion does not compile #5754
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
L-suggestion
Lint: Improving, adding or fixing lint suggestions
I tried this code:
Clippy says:
When applying the suggestion (= uncommenting the marked line in the code), the following happens:
Meta
No idea. This happens on the Rust playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=732732b92adbc28314716081acc4e733
The playground says this is clippy
0.0.212 (2020-06-26 7750c3d)
and I have no idea were to find the rustc version. Sorry.I cannot reproduce locally with
clippy 0.0.212 (d4092ac 2020-05-11)
.The text was updated successfully, but these errors were encountered: