@@ -161,64 +161,28 @@ error: redundant pattern matching, consider using `is_none()`
161161 --> $DIR/redundant_pattern_matching_option.rs:114:5
162162 |
163163LL | / match Some(42) {
164- LL | | Some(_) => false,
165- LL | | _ => true,
166- LL | | };
167- | |_____^ help: try this: `Some(42).is_none()`
168-
169- error: redundant pattern matching, consider using `is_none()`
170- --> $DIR/redundant_pattern_matching_option.rs:119:5
171- |
172- LL | / match Some(42) {
173164LL | | None => true,
174165LL | | _ => false,
175166LL | | };
176167 | |_____^ help: try this: `Some(42).is_none()`
177168
178169error: redundant pattern matching, consider using `is_some()`
179- --> $DIR/redundant_pattern_matching_option.rs:124:5
180- |
181- LL | / match Some(42) {
182- LL | | None => false,
183- LL | | _ => true,
184- LL | | };
185- | |_____^ help: try this: `Some(42).is_some()`
186-
187- error: redundant pattern matching, consider using `is_none()`
188- --> $DIR/redundant_pattern_matching_option.rs:129:5
189- |
190- LL | / match None::<()> {
191- LL | | Some(_) => false,
192- LL | | _ => true,
193- LL | | };
194- | |_____^ help: try this: `None::<()>.is_none()`
195-
196- error: redundant pattern matching, consider using `is_none()`
197- --> $DIR/redundant_pattern_matching_option.rs:134:5
170+ --> $DIR/redundant_pattern_matching_option.rs:119:5
198171 |
199172LL | / match None::<()> {
200- LL | | Some(_) => false ,
201- LL | | _ => true ,
173+ LL | | Some(_) => true ,
174+ LL | | _ => false ,
202175LL | | };
203- | |_____^ help: try this: `None::<()>.is_none ()`
176+ | |_____^ help: try this: `None::<()>.is_some ()`
204177
205178error: redundant pattern matching, consider using `is_none()`
206- --> $DIR/redundant_pattern_matching_option.rs:139 :5
179+ --> $DIR/redundant_pattern_matching_option.rs:124 :5
207180 |
208181LL | / match None::<()> {
209182LL | | None => true,
210183LL | | _ => false,
211184LL | | };
212185 | |_____^ help: try this: `None::<()>.is_none()`
213186
214- error: redundant pattern matching, consider using `is_some()`
215- --> $DIR/redundant_pattern_matching_option.rs:144:5
216- |
217- LL | / match None::<()> {
218- LL | | None => false,
219- LL | | _ => true,
220- LL | | };
221- | |_____^ help: try this: `None::<()>.is_some()`
222-
223- error: aborting due to 30 previous errors
187+ error: aborting due to 26 previous errors
224188
0 commit comments