1 error: called `unwrap` on `x` after checking its variant with `is_ok`
2 --> $DIR/complex_conditionals.rs:8:9
4 LL | if x.is_ok() && y.is_err() {
5 | --------- the check is happening here
6 LL | x.unwrap(); // unnecessary
9 = help: try using `if let` or `match`
10 note: the lint level is defined here
11 --> $DIR/complex_conditionals.rs:1:35
13 LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
16 error: this call to `unwrap_err()` will always panic
17 --> $DIR/complex_conditionals.rs:9:9
19 LL | if x.is_ok() && y.is_err() {
20 | --------- because of this check
21 LL | x.unwrap(); // unnecessary
22 LL | x.unwrap_err(); // will panic
25 note: the lint level is defined here
26 --> $DIR/complex_conditionals.rs:1:9
28 LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
29 | ^^^^^^^^^^^^^^^^^^^^^^^^
31 error: this call to `unwrap()` will always panic
32 --> $DIR/complex_conditionals.rs:10:9
34 LL | if x.is_ok() && y.is_err() {
35 | ---------- because of this check
37 LL | y.unwrap(); // will panic
40 error: called `unwrap_err` on `y` after checking its variant with `is_err`
41 --> $DIR/complex_conditionals.rs:11:9
43 LL | if x.is_ok() && y.is_err() {
44 | ---------- the check is happening here
46 LL | y.unwrap_err(); // unnecessary
49 = help: try using `if let` or `match`
51 error: this call to `unwrap()` will always panic
52 --> $DIR/complex_conditionals.rs:25:9
54 LL | if x.is_ok() || y.is_ok() {
55 | --------- because of this check
57 LL | x.unwrap(); // will panic
60 error: called `unwrap_err` on `x` after checking its variant with `is_ok`
61 --> $DIR/complex_conditionals.rs:26:9
63 LL | if x.is_ok() || y.is_ok() {
64 | --------- the check is happening here
66 LL | x.unwrap_err(); // unnecessary
69 = help: try using `if let` or `match`
71 error: this call to `unwrap()` will always panic
72 --> $DIR/complex_conditionals.rs:27:9
74 LL | if x.is_ok() || y.is_ok() {
75 | --------- because of this check
77 LL | y.unwrap(); // will panic
80 error: called `unwrap_err` on `y` after checking its variant with `is_ok`
81 --> $DIR/complex_conditionals.rs:28:9
83 LL | if x.is_ok() || y.is_ok() {
84 | --------- the check is happening here
86 LL | y.unwrap_err(); // unnecessary
89 = help: try using `if let` or `match`
91 error: called `unwrap` on `x` after checking its variant with `is_ok`
92 --> $DIR/complex_conditionals.rs:32:9
94 LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
95 | --------- the check is happening here
96 LL | x.unwrap(); // unnecessary
99 = help: try using `if let` or `match`
101 error: this call to `unwrap_err()` will always panic
102 --> $DIR/complex_conditionals.rs:33:9
104 LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
105 | --------- because of this check
106 LL | x.unwrap(); // unnecessary
107 LL | x.unwrap_err(); // will panic
110 error: this call to `unwrap()` will always panic
111 --> $DIR/complex_conditionals.rs:34:9
113 LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
114 | --------- because of this check
116 LL | y.unwrap(); // will panic
119 error: called `unwrap_err` on `y` after checking its variant with `is_ok`
120 --> $DIR/complex_conditionals.rs:35:9
122 LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
123 | --------- the check is happening here
125 LL | y.unwrap_err(); // unnecessary
128 = help: try using `if let` or `match`
130 error: called `unwrap` on `z` after checking its variant with `is_err`
131 --> $DIR/complex_conditionals.rs:36:9
133 LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
134 | ---------- the check is happening here
136 LL | z.unwrap(); // unnecessary
139 = help: try using `if let` or `match`
141 error: this call to `unwrap_err()` will always panic
142 --> $DIR/complex_conditionals.rs:37:9
144 LL | if x.is_ok() && !(y.is_ok() || z.is_err()) {
145 | ---------- because of this check
147 LL | z.unwrap_err(); // will panic
150 error: this call to `unwrap()` will always panic
151 --> $DIR/complex_conditionals.rs:45:9
153 LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
154 | --------- because of this check
156 LL | x.unwrap(); // will panic
159 error: called `unwrap_err` on `x` after checking its variant with `is_ok`
160 --> $DIR/complex_conditionals.rs:46:9
162 LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
163 | --------- the check is happening here
165 LL | x.unwrap_err(); // unnecessary
168 = help: try using `if let` or `match`
170 error: called `unwrap` on `y` after checking its variant with `is_ok`
171 --> $DIR/complex_conditionals.rs:47:9
173 LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
174 | --------- the check is happening here
176 LL | y.unwrap(); // unnecessary
179 = help: try using `if let` or `match`
181 error: this call to `unwrap_err()` will always panic
182 --> $DIR/complex_conditionals.rs:48:9
184 LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
185 | --------- because of this check
187 LL | y.unwrap_err(); // will panic
190 error: this call to `unwrap()` will always panic
191 --> $DIR/complex_conditionals.rs:49:9
193 LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
194 | ---------- because of this check
196 LL | z.unwrap(); // will panic
199 error: called `unwrap_err` on `z` after checking its variant with `is_err`
200 --> $DIR/complex_conditionals.rs:50:9
202 LL | if x.is_ok() || !(y.is_ok() && z.is_err()) {
203 | ---------- the check is happening here
205 LL | z.unwrap_err(); // unnecessary
208 = help: try using `if let` or `match`
210 error: aborting due to 20 previous errors