2021-01-20 12:05:25 +00:00
|
|
|
error: used `sort` on primitive type `i32`
|
2020-07-09 03:29:56 +00:00
|
|
|
--> $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`
|
2021-01-20 12:05:25 +00:00
|
|
|
= note: an unstable sort would perform faster without any observable difference for this data type
|
2020-07-09 03:29:56 +00:00
|
|
|
|
2021-01-20 12:05:25 +00:00
|
|
|
error: used `sort` on primitive type `bool`
|
2020-07-09 03:29:56 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:9:5
|
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-20 12:05:25 +00:00
|
|
|
|
|
|
|
|
= note: an unstable sort would perform faster without any observable difference for this data type
|
2020-07-09 03:29:56 +00:00
|
|
|
|
2021-01-20 12:05:25 +00:00
|
|
|
error: used `sort` on primitive type `char`
|
2020-07-09 03:29:56 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:11:5
|
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-20 12:05:25 +00:00
|
|
|
|
|
|
|
|
= note: an unstable sort would perform faster without any observable difference for this data type
|
2020-07-09 03:29:56 +00:00
|
|
|
|
2021-01-20 12:05:25 +00:00
|
|
|
error: used `sort` on primitive type `str`
|
2020-07-09 03:29:56 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:13:5
|
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-20 12:05:25 +00:00
|
|
|
|
|
|
|
|
= note: an unstable sort would perform faster without any observable difference for this data type
|
2020-07-09 03:29:56 +00:00
|
|
|
|
2021-01-20 12:05:25 +00:00
|
|
|
error: used `sort` on primitive type `tuple`
|
2020-07-09 03:29:56 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:15:5
|
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-20 12:05:25 +00:00
|
|
|
|
|
|
|
|
= note: an unstable sort would perform faster without any observable difference for this data type
|
2020-07-09 03:29:56 +00:00
|
|
|
|
2021-01-20 12:05:25 +00:00
|
|
|
error: used `sort` on primitive type `array`
|
2020-07-09 03:29:56 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:17:5
|
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-20 12:05:25 +00:00
|
|
|
|
|
|
|
|
= note: an unstable sort would perform faster without any observable difference for this data type
|
2020-07-09 03:29:56 +00:00
|
|
|
|
2021-01-20 12:05:25 +00:00
|
|
|
error: used `sort` on primitive type `i32`
|
2020-07-09 03:29:56 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:19:5
|
|
|
|
|
|
|
|
|
LL | arr.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `arr.sort_unstable()`
|
2021-01-20 12:05:25 +00:00
|
|
|
|
|
|
|
|
= note: an unstable sort would perform faster without any observable difference for this data type
|
2020-07-09 03:29:56 +00:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|