2021-01-30 17:06:34 +00:00
|
|
|
error: used `sort` on primitive type `i32`
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:8:5
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
|
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
= note: an unstable sort typically performs faster without any observable difference for this data type
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::stable-sort-primitive` implied by `-D warnings`
|
2020-08-11 13:43:21 +00:00
|
|
|
|
2021-01-30 17:06:34 +00:00
|
|
|
error: used `sort` on primitive type `bool`
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:10:5
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
= note: an unstable sort typically performs faster without any observable difference for this data type
|
2020-08-11 13:43:21 +00:00
|
|
|
|
2021-01-30 17:06:34 +00:00
|
|
|
error: used `sort` on primitive type `char`
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:12:5
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
= note: an unstable sort typically performs faster without any observable difference for this data type
|
2020-08-11 13:43:21 +00:00
|
|
|
|
2021-01-30 17:06:34 +00:00
|
|
|
error: used `sort` on primitive type `str`
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:14:5
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
= note: an unstable sort typically performs faster without any observable difference for this data type
|
2020-08-11 13:43:21 +00:00
|
|
|
|
2021-01-30 17:06:34 +00:00
|
|
|
error: used `sort` on primitive type `tuple`
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:16:5
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
= note: an unstable sort typically performs faster without any observable difference for this data type
|
2020-08-11 13:43:21 +00:00
|
|
|
|
2021-01-30 17:06:34 +00:00
|
|
|
error: used `sort` on primitive type `array`
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:18:5
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | vec.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
= note: an unstable sort typically performs faster without any observable difference for this data type
|
2020-08-11 13:43:21 +00:00
|
|
|
|
2021-01-30 17:06:34 +00:00
|
|
|
error: used `sort` on primitive type `i32`
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/stable_sort_primitive.rs:20:5
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | arr.sort();
|
|
|
|
| ^^^^^^^^^^ help: try: `arr.sort_unstable()`
|
2021-01-30 17:06:34 +00:00
|
|
|
|
|
2022-05-05 14:12:52 +00:00
|
|
|
= note: an unstable sort typically performs faster without any observable difference for this data type
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|