mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 18:13:36 +00:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
|
error: Use sort_unstable instead of sort
|
||
|
--> $DIR/stable_sort_primitive.rs:7:5
|
||
|
|
|
||
|
LL | vec.sort();
|
||
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
||
|
|
|
||
|
= note: `-D clippy::stable-sort-primitive` implied by `-D warnings`
|
||
|
|
||
|
error: Use sort_unstable instead of sort
|
||
|
--> $DIR/stable_sort_primitive.rs:9:5
|
||
|
|
|
||
|
LL | vec.sort();
|
||
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
||
|
|
||
|
error: Use sort_unstable instead of sort
|
||
|
--> $DIR/stable_sort_primitive.rs:11:5
|
||
|
|
|
||
|
LL | vec.sort();
|
||
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
||
|
|
||
|
error: Use sort_unstable instead of sort
|
||
|
--> $DIR/stable_sort_primitive.rs:13:5
|
||
|
|
|
||
|
LL | vec.sort();
|
||
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
||
|
|
||
|
error: Use sort_unstable instead of sort
|
||
|
--> $DIR/stable_sort_primitive.rs:15:5
|
||
|
|
|
||
|
LL | vec.sort();
|
||
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
||
|
|
||
|
error: Use sort_unstable instead of sort
|
||
|
--> $DIR/stable_sort_primitive.rs:17:5
|
||
|
|
|
||
|
LL | vec.sort();
|
||
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
||
|
|
||
|
error: Use sort_unstable instead of sort
|
||
|
--> $DIR/stable_sort_primitive.rs:19:5
|
||
|
|
|
||
|
LL | arr.sort();
|
||
|
| ^^^^^^^^^^ help: try: `arr.sort_unstable()`
|
||
|
|
||
|
error: aborting due to 7 previous errors
|
||
|
|