]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/comparison_chain.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / comparison_chain.stderr
CommitLineData
f20569fa
XL
1error: `if` chain can be rewritten with `match`
2 --> $DIR/comparison_chain.rs:14:5
3 |
4LL | / if x > y {
5LL | | a()
6LL | | } else if x < y {
7LL | | b()
8LL | | }
9 | |_____^
10 |
11 = note: `-D clippy::comparison-chain` implied by `-D warnings`
12 = help: consider rewriting the `if` chain to use `cmp` and `match`
13
14error: `if` chain can be rewritten with `match`
15 --> $DIR/comparison_chain.rs:27:5
16 |
17LL | / if x > y {
18LL | | a()
19LL | | } else if x < y {
20LL | | b()
21LL | | } else {
22LL | | c()
23LL | | }
24 | |_____^
25 |
26 = help: consider rewriting the `if` chain to use `cmp` and `match`
27
28error: `if` chain can be rewritten with `match`
29 --> $DIR/comparison_chain.rs:35:5
30 |
31LL | / if x > y {
32LL | | a()
33LL | | } else if y > x {
34LL | | b()
35LL | | } else {
36LL | | c()
37LL | | }
38 | |_____^
39 |
40 = help: consider rewriting the `if` chain to use `cmp` and `match`
41
42error: `if` chain can be rewritten with `match`
43 --> $DIR/comparison_chain.rs:43:5
44 |
45LL | / if x > 1 {
46LL | | a()
47LL | | } else if x < 1 {
48LL | | b()
49LL | | } else if x == 1 {
50LL | | c()
51LL | | }
52 | |_____^
53 |
54 = help: consider rewriting the `if` chain to use `cmp` and `match`
55
56error: `if` chain can be rewritten with `match`
57 --> $DIR/comparison_chain.rs:117:5
58 |
59LL | / if x > y {
60LL | | a()
61LL | | } else if x < y {
62LL | | b()
63LL | | }
64 | |_____^
65 |
66 = help: consider rewriting the `if` chain to use `cmp` and `match`
67
68error: `if` chain can be rewritten with `match`
69 --> $DIR/comparison_chain.rs:123:5
70 |
71LL | / if x > y {
72LL | | a()
73LL | | } else if x < y {
74LL | | b()
75LL | | } else {
76LL | | c()
77LL | | }
78 | |_____^
79 |
80 = help: consider rewriting the `if` chain to use `cmp` and `match`
81
82error: `if` chain can be rewritten with `match`
83 --> $DIR/comparison_chain.rs:131:5
84 |
85LL | / if x > y {
86LL | | a()
87LL | | } else if y > x {
88LL | | b()
89LL | | } else {
90LL | | c()
91LL | | }
92 | |_____^
93 |
94 = help: consider rewriting the `if` chain to use `cmp` and `match`
95
96error: aborting due to 7 previous errors
97