rust-clippy/tests/ui/stable_sort_primitive.stderr

59 lines
2 KiB
Text

error: used `sort` on primitive type `i32`
--> $DIR/stable_sort_primitive.rs:8:5
|
LL | vec.sort();
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
= note: an unstable sort typically performs faster without any observable difference for this data type
= note: `-D clippy::stable-sort-primitive` implied by `-D warnings`
error: used `sort` on primitive type `bool`
--> $DIR/stable_sort_primitive.rs:10:5
|
LL | vec.sort();
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
= note: an unstable sort typically performs faster without any observable difference for this data type
error: used `sort` on primitive type `char`
--> $DIR/stable_sort_primitive.rs:12:5
|
LL | vec.sort();
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
= note: an unstable sort typically performs faster without any observable difference for this data type
error: used `sort` on primitive type `str`
--> $DIR/stable_sort_primitive.rs:14:5
|
LL | vec.sort();
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
= note: an unstable sort typically performs faster without any observable difference for this data type
error: used `sort` on primitive type `tuple`
--> $DIR/stable_sort_primitive.rs:16:5
|
LL | vec.sort();
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
= note: an unstable sort typically performs faster without any observable difference for this data type
error: used `sort` on primitive type `array`
--> $DIR/stable_sort_primitive.rs:18:5
|
LL | vec.sort();
| ^^^^^^^^^^ help: try: `vec.sort_unstable()`
|
= note: an unstable sort typically performs faster without any observable difference for this data type
error: used `sort` on primitive type `i32`
--> $DIR/stable_sort_primitive.rs:20:5
|
LL | arr.sort();
| ^^^^^^^^^^ help: try: `arr.sort_unstable()`
|
= note: an unstable sort typically performs faster without any observable difference for this data type
error: aborting due to 7 previous errors