]> git.lizzy.rs Git - rust.git/blob - tests/ui/stable_sort_primitive.stderr
Merge branch 'master' into lint-5734
[rust.git] / tests / ui / stable_sort_primitive.stderr
1 error: used sort instead of sort_unstable to sort primitive type `i32`
2   --> $DIR/stable_sort_primitive.rs:7:5
3    |
4 LL |     vec.sort();
5    |     ^^^^^^^^^^ help: try: `vec.sort_unstable()`
6    |
7    = note: `-D clippy::stable-sort-primitive` implied by `-D warnings`
8
9 error: used sort instead of sort_unstable to sort primitive type `bool`
10   --> $DIR/stable_sort_primitive.rs:9:5
11    |
12 LL |     vec.sort();
13    |     ^^^^^^^^^^ help: try: `vec.sort_unstable()`
14
15 error: used sort instead of sort_unstable to sort primitive type `char`
16   --> $DIR/stable_sort_primitive.rs:11:5
17    |
18 LL |     vec.sort();
19    |     ^^^^^^^^^^ help: try: `vec.sort_unstable()`
20
21 error: used sort instead of sort_unstable to sort primitive type `str`
22   --> $DIR/stable_sort_primitive.rs:13:5
23    |
24 LL |     vec.sort();
25    |     ^^^^^^^^^^ help: try: `vec.sort_unstable()`
26
27 error: used sort instead of sort_unstable to sort primitive type `tuple`
28   --> $DIR/stable_sort_primitive.rs:15:5
29    |
30 LL |     vec.sort();
31    |     ^^^^^^^^^^ help: try: `vec.sort_unstable()`
32
33 error: used sort instead of sort_unstable to sort primitive type `array`
34   --> $DIR/stable_sort_primitive.rs:17:5
35    |
36 LL |     vec.sort();
37    |     ^^^^^^^^^^ help: try: `vec.sort_unstable()`
38
39 error: used sort instead of sort_unstable to sort primitive type `i32`
40   --> $DIR/stable_sort_primitive.rs:19:5
41    |
42 LL |     arr.sort();
43    |     ^^^^^^^^^^ help: try: `arr.sort_unstable()`
44
45 error: aborting due to 7 previous errors
46