]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/checked_unwrap/complex_conditionals.stderr
bump version to 1.82.0+dfsg1-1~bpo12+pve2
[rustc.git] / src / tools / clippy / tests / ui / checked_unwrap / complex_conditionals.stderr
CommitLineData
c295e0f8 1error: called `unwrap` on `x` after checking its variant with `is_ok`
c620b35d 2 --> tests/ui/checked_unwrap/complex_conditionals.rs:13:9
f20569fa
XL
3 |
4LL | if x.is_ok() && y.is_err() {
5 | --------- the check is happening here
781aab86
FG
6LL | // unnecessary
7LL | x.unwrap();
f20569fa
XL
8 | ^^^^^^^^^^
9 |
2b03887a 10 = help: try using `if let` or `match`
f20569fa 11note: the lint level is defined here
c620b35d 12 --> tests/ui/checked_unwrap/complex_conditionals.rs:1:35
f20569fa
XL
13 |
14LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
16
17error: this call to `unwrap_err()` will always panic
c620b35d 18 --> tests/ui/checked_unwrap/complex_conditionals.rs:16:9
f20569fa
XL
19 |
20LL | if x.is_ok() && y.is_err() {
21 | --------- because of this check
781aab86
FG
22...
23LL | x.unwrap_err();
f20569fa
XL
24 | ^^^^^^^^^^^^^^
25 |
26note: the lint level is defined here
c620b35d 27 --> tests/ui/checked_unwrap/complex_conditionals.rs:1:9
f20569fa
XL
28 |
29LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
30 | ^^^^^^^^^^^^^^^^^^^^^^^^
31
32error: this call to `unwrap()` will always panic
c620b35d 33 --> tests/ui/checked_unwrap/complex_conditionals.rs:19:9
f20569fa
XL
34 |
35LL | if x.is_ok() && y.is_err() {
36 | ---------- because of this check
37...
781aab86 38LL | y.unwrap();
f20569fa
XL
39 | ^^^^^^^^^^
40
c295e0f8 41error: called `unwrap_err` on `y` after checking its variant with `is_err`
c620b35d 42 --> tests/ui/checked_unwrap/complex_conditionals.rs:22:9
f20569fa
XL
43 |
44LL | if x.is_ok() && y.is_err() {
45 | ---------- the check is happening here
46...
781aab86 47LL | y.unwrap_err();
f20569fa 48 | ^^^^^^^^^^^^^^
c295e0f8
XL
49 |
50 = help: try using `if let` or `match`
f20569fa
XL
51
52error: this call to `unwrap()` will always panic
c620b35d 53 --> tests/ui/checked_unwrap/complex_conditionals.rs:38:9
f20569fa
XL
54 |
55LL | if x.is_ok() || y.is_ok() {
56 | --------- because of this check
57...
781aab86 58LL | x.unwrap();
f20569fa
XL
59 | ^^^^^^^^^^
60
c295e0f8 61error: called `unwrap_err` on `x` after checking its variant with `is_ok`
c620b35d 62 --> tests/ui/checked_unwrap/complex_conditionals.rs:41:9
f20569fa
XL
63 |
64LL | if x.is_ok() || y.is_ok() {
65 | --------- the check is happening here
66...
781aab86 67LL | x.unwrap_err();
f20569fa 68 | ^^^^^^^^^^^^^^
c295e0f8
XL
69 |
70 = help: try using `if let` or `match`
f20569fa
XL
71
72error: this call to `unwrap()` will always panic
c620b35d 73 --> tests/ui/checked_unwrap/complex_conditionals.rs:44:9
f20569fa
XL
74 |
75LL | if x.is_ok() || y.is_ok() {
76 | --------- because of this check
77...
781aab86 78LL | y.unwrap();
f20569fa
XL
79 | ^^^^^^^^^^
80
c295e0f8 81error: called `unwrap_err` on `y` after checking its variant with `is_ok`
c620b35d 82 --> tests/ui/checked_unwrap/complex_conditionals.rs:47:9
f20569fa
XL
83 |
84LL | if x.is_ok() || y.is_ok() {
85 | --------- the check is happening here
86...
781aab86 87LL | y.unwrap_err();
f20569fa 88 | ^^^^^^^^^^^^^^
c295e0f8
XL
89 |
90 = help: try using `if let` or `match`
f20569fa 91
c295e0f8 92error: called `unwrap` on `x` after checking its variant with `is_ok`
c620b35d 93 --> tests/ui/checked_unwrap/complex_conditionals.rs:53:9
f20569fa
XL
94 |
95LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
96 | --------- the check is happening here
781aab86
FG
97LL | // unnecessary
98LL | x.unwrap();
f20569fa 99 | ^^^^^^^^^^
c295e0f8
XL
100 |
101 = help: try using `if let` or `match`
f20569fa
XL
102
103error: this call to `unwrap_err()` will always panic
c620b35d 104 --> tests/ui/checked_unwrap/complex_conditionals.rs:56:9
f20569fa
XL
105 |
106LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
107 | --------- because of this check
781aab86
FG
108...
109LL | x.unwrap_err();
f20569fa
XL
110 | ^^^^^^^^^^^^^^
111
112error: this call to `unwrap()` will always panic
c620b35d 113 --> tests/ui/checked_unwrap/complex_conditionals.rs:59:9
f20569fa
XL
114 |
115LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
116 | --------- because of this check
117...
781aab86 118LL | y.unwrap();
f20569fa
XL
119 | ^^^^^^^^^^
120
c295e0f8 121error: called `unwrap_err` on `y` after checking its variant with `is_ok`
c620b35d 122 --> tests/ui/checked_unwrap/complex_conditionals.rs:62:9
f20569fa
XL
123 |
124LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
125 | --------- the check is happening here
126...
781aab86 127LL | y.unwrap_err();
f20569fa 128 | ^^^^^^^^^^^^^^
c295e0f8
XL
129 |
130 = help: try using `if let` or `match`
f20569fa 131
c295e0f8 132error: called `unwrap` on `z` after checking its variant with `is_err`
c620b35d 133 --> tests/ui/checked_unwrap/complex_conditionals.rs:65:9
f20569fa
XL
134 |
135LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
136 | ---------- the check is happening here
137...
781aab86 138LL | z.unwrap();
f20569fa 139 | ^^^^^^^^^^
c295e0f8
XL
140 |
141 = help: try using `if let` or `match`
f20569fa
XL
142
143error: this call to `unwrap_err()` will always panic
c620b35d 144 --> tests/ui/checked_unwrap/complex_conditionals.rs:68:9
f20569fa
XL
145 |
146LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
147 | ---------- because of this check
148...
781aab86 149LL | z.unwrap_err();
f20569fa
XL
150 | ^^^^^^^^^^^^^^
151
152error: this call to `unwrap()` will always panic
c620b35d 153 --> tests/ui/checked_unwrap/complex_conditionals.rs:78:9
f20569fa
XL
154 |
155LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
156 | --------- because of this check
157...
781aab86 158LL | x.unwrap();
f20569fa
XL
159 | ^^^^^^^^^^
160
c295e0f8 161error: called `unwrap_err` on `x` after checking its variant with `is_ok`
c620b35d 162 --> tests/ui/checked_unwrap/complex_conditionals.rs:81:9
f20569fa
XL
163 |
164LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
165 | --------- the check is happening here
166...
781aab86 167LL | x.unwrap_err();
f20569fa 168 | ^^^^^^^^^^^^^^
c295e0f8
XL
169 |
170 = help: try using `if let` or `match`
f20569fa 171
c295e0f8 172error: called `unwrap` on `y` after checking its variant with `is_ok`
c620b35d 173 --> tests/ui/checked_unwrap/complex_conditionals.rs:84:9
f20569fa
XL
174 |
175LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
176 | --------- the check is happening here
177...
781aab86 178LL | y.unwrap();
f20569fa 179 | ^^^^^^^^^^
c295e0f8
XL
180 |
181 = help: try using `if let` or `match`
f20569fa
XL
182
183error: this call to `unwrap_err()` will always panic
c620b35d 184 --> tests/ui/checked_unwrap/complex_conditionals.rs:87:9
f20569fa
XL
185 |
186LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
187 | --------- because of this check
188...
781aab86 189LL | y.unwrap_err();
f20569fa
XL
190 | ^^^^^^^^^^^^^^
191
192error: this call to `unwrap()` will always panic
c620b35d 193 --> tests/ui/checked_unwrap/complex_conditionals.rs:90:9
f20569fa
XL
194 |
195LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
196 | ---------- because of this check
197...
781aab86 198LL | z.unwrap();
f20569fa
XL
199 | ^^^^^^^^^^
200
c295e0f8 201error: called `unwrap_err` on `z` after checking its variant with `is_err`
c620b35d 202 --> tests/ui/checked_unwrap/complex_conditionals.rs:93:9
f20569fa
XL
203 |
204LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
205 | ---------- the check is happening here
206...
781aab86 207LL | z.unwrap_err();
f20569fa 208 | ^^^^^^^^^^^^^^
c295e0f8
XL
209 |
210 = help: try using `if let` or `match`
f20569fa
XL
211
212error: aborting due to 20 previous errors
213