@@ -89,31 +89,37 @@ LL | } else if let None = gen_opt() {
8989 | -------^^^^------------ help: try this: `if gen_opt().is_none()`
9090
9191error: redundant pattern matching, consider using `is_some()`
92- --> $DIR/redundant_pattern_matching_option.rs:80:12
92+ --> $DIR/redundant_pattern_matching_option.rs:67:12
93+ |
94+ LL | if let Some(..) = gen_opt() {}
95+ | -------^^^^^^^^------------ help: try this: `if gen_opt().is_some()`
96+
97+ error: redundant pattern matching, consider using `is_some()`
98+ --> $DIR/redundant_pattern_matching_option.rs:82:12
9399 |
94100LL | if let Some(_) = Some(42) {}
95101 | -------^^^^^^^----------- help: try this: `if Some(42).is_some()`
96102
97103error: redundant pattern matching, consider using `is_none()`
98- --> $DIR/redundant_pattern_matching_option.rs:82 :12
104+ --> $DIR/redundant_pattern_matching_option.rs:84 :12
99105 |
100106LL | if let None = None::<()> {}
101107 | -------^^^^------------- help: try this: `if None::<()>.is_none()`
102108
103109error: redundant pattern matching, consider using `is_some()`
104- --> $DIR/redundant_pattern_matching_option.rs:84 :15
110+ --> $DIR/redundant_pattern_matching_option.rs:86 :15
105111 |
106112LL | while let Some(_) = Some(42) {}
107113 | ----------^^^^^^^----------- help: try this: `while Some(42).is_some()`
108114
109115error: redundant pattern matching, consider using `is_none()`
110- --> $DIR/redundant_pattern_matching_option.rs:86 :15
116+ --> $DIR/redundant_pattern_matching_option.rs:88 :15
111117 |
112118LL | while let None = None::<()> {}
113119 | ----------^^^^------------- help: try this: `while None::<()>.is_none()`
114120
115121error: redundant pattern matching, consider using `is_some()`
116- --> $DIR/redundant_pattern_matching_option.rs:88 :5
122+ --> $DIR/redundant_pattern_matching_option.rs:90 :5
117123 |
118124LL | / match Some(42) {
119125LL | | Some(_) => true,
@@ -122,7 +128,7 @@ LL | | };
122128 | |_____^ help: try this: `Some(42).is_some()`
123129
124130error: redundant pattern matching, consider using `is_none()`
125- --> $DIR/redundant_pattern_matching_option.rs:93 :5
131+ --> $DIR/redundant_pattern_matching_option.rs:95 :5
126132 |
127133LL | / match None::<()> {
128134LL | | Some(_) => false,
@@ -131,16 +137,16 @@ LL | | };
131137 | |_____^ help: try this: `None::<()>.is_none()`
132138
133139error: redundant pattern matching, consider using `is_none()`
134- --> $DIR/redundant_pattern_matching_option.rs:101 :12
140+ --> $DIR/redundant_pattern_matching_option.rs:103 :12
135141 |
136142LL | if let None = *(&None::<()>) {}
137143 | -------^^^^----------------- help: try this: `if (&None::<()>).is_none()`
138144
139145error: redundant pattern matching, consider using `is_none()`
140- --> $DIR/redundant_pattern_matching_option.rs:102 :12
146+ --> $DIR/redundant_pattern_matching_option.rs:104 :12
141147 |
142148LL | if let None = *&None::<()> {}
143149 | -------^^^^--------------- help: try this: `if (&None::<()>).is_none()`
144150
145- error: aborting due to 21 previous errors
151+ error: aborting due to 22 previous errors
146152
0 commit comments