@@ -85,55 +85,55 @@ LL | } else if let Err(_) = gen_res() {
8585 | -------^^^^^^------------ help: try this: `if gen_res().is_err()`
8686
8787error: redundant pattern matching, consider using `is_some()`
88- --> $DIR/redundant_pattern_matching_result.rs:84 :19
88+ --> $DIR/redundant_pattern_matching_result.rs:88 :19
8989 |
9090LL | while let Some(_) = r#try!(result_opt()) {}
9191 | ----------^^^^^^^----------------------- help: try this: `while r#try!(result_opt()).is_some()`
9292
9393error: redundant pattern matching, consider using `is_some()`
94- --> $DIR/redundant_pattern_matching_result.rs:85 :16
94+ --> $DIR/redundant_pattern_matching_result.rs:89 :16
9595 |
9696LL | if let Some(_) = r#try!(result_opt()) {}
9797 | -------^^^^^^^----------------------- help: try this: `if r#try!(result_opt()).is_some()`
9898
9999error: redundant pattern matching, consider using `is_some()`
100- --> $DIR/redundant_pattern_matching_result.rs:91 :12
100+ --> $DIR/redundant_pattern_matching_result.rs:95 :12
101101 |
102102LL | if let Some(_) = m!() {}
103103 | -------^^^^^^^------- help: try this: `if m!().is_some()`
104104
105105error: redundant pattern matching, consider using `is_some()`
106- --> $DIR/redundant_pattern_matching_result.rs:92 :15
106+ --> $DIR/redundant_pattern_matching_result.rs:96 :15
107107 |
108108LL | while let Some(_) = m!() {}
109109 | ----------^^^^^^^------- help: try this: `while m!().is_some()`
110110
111111error: redundant pattern matching, consider using `is_ok()`
112- --> $DIR/redundant_pattern_matching_result.rs:110 :12
112+ --> $DIR/redundant_pattern_matching_result.rs:114 :12
113113 |
114114LL | if let Ok(_) = Ok::<i32, i32>(42) {}
115115 | -------^^^^^--------------------- help: try this: `if Ok::<i32, i32>(42).is_ok()`
116116
117117error: redundant pattern matching, consider using `is_err()`
118- --> $DIR/redundant_pattern_matching_result.rs:112 :12
118+ --> $DIR/redundant_pattern_matching_result.rs:116 :12
119119 |
120120LL | if let Err(_) = Err::<i32, i32>(42) {}
121121 | -------^^^^^^---------------------- help: try this: `if Err::<i32, i32>(42).is_err()`
122122
123123error: redundant pattern matching, consider using `is_ok()`
124- --> $DIR/redundant_pattern_matching_result.rs:114 :15
124+ --> $DIR/redundant_pattern_matching_result.rs:118 :15
125125 |
126126LL | while let Ok(_) = Ok::<i32, i32>(10) {}
127127 | ----------^^^^^--------------------- help: try this: `while Ok::<i32, i32>(10).is_ok()`
128128
129129error: redundant pattern matching, consider using `is_err()`
130- --> $DIR/redundant_pattern_matching_result.rs:116 :15
130+ --> $DIR/redundant_pattern_matching_result.rs:120 :15
131131 |
132132LL | while let Err(_) = Ok::<i32, i32>(10) {}
133133 | ----------^^^^^^--------------------- help: try this: `while Ok::<i32, i32>(10).is_err()`
134134
135135error: redundant pattern matching, consider using `is_ok()`
136- --> $DIR/redundant_pattern_matching_result.rs:118 :5
136+ --> $DIR/redundant_pattern_matching_result.rs:122 :5
137137 |
138138LL | / match Ok::<i32, i32>(42) {
139139LL | | Ok(_) => true,
@@ -142,7 +142,7 @@ LL | | };
142142 | |_____^ help: try this: `Ok::<i32, i32>(42).is_ok()`
143143
144144error: redundant pattern matching, consider using `is_err()`
145- --> $DIR/redundant_pattern_matching_result.rs:123 :5
145+ --> $DIR/redundant_pattern_matching_result.rs:127 :5
146146 |
147147LL | / match Err::<i32, i32>(42) {
148148LL | | Ok(_) => false,
0 commit comments