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