about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-01-21 14:12:43 +0000
committerbors <bors@rust-lang.org>2021-01-21 14:12:43 +0000
commit16d13a5a4b77ea543850a216a0ad8453ebade3cd (patch)
tree4ce7b181513f780ffed254734978beeaa60aa266 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentd990c31990e72dfdff361c384da7550968e2822a (diff)
parente42208f1b7befe316e32c66b6dc6d242a56f4d84 (diff)
downloadrust-16d13a5a4b77ea543850a216a0ad8453ebade3cd.tar.gz
rust-16d13a5a4b77ea543850a216a0ad8453ebade3cd.zip
Auto merge of #6611 - pastchick3:master, r=flip1995
Fix the reversed suggestion message of `stable_sort_primitive`.

Now Clippy emits `stable_sort_primitive` warning as follows:

```
warning: used sort instead of sort_unstable to sort primitive type `usize`
  --> src\asm.rs:41:13
   |
41 |             self.successors.sort();
   |             ^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.successors.sort_unstable()`
   |
   = note: `#[warn(clippy::stable_sort_primitive)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive
```

I think the position of `sort` and `sort_unstable` in the first line should be reversed.

changelog: Fix the reversed suggestion message of `stable_sort_primitive`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions