@@ -73,67 +73,67 @@ LL | let _ = if let Ok(_) = Ok::<usize, ()>(4) { true } else { false };
7373 | -------^^^^^--------------------- help: try this: `if Ok::<usize, ()>(4).is_ok()`
7474
7575error: redundant pattern matching, consider using `is_ok()`
76- --> $DIR/redundant_pattern_matching.rs:58 :20
76+ --> $DIR/redundant_pattern_matching.rs:59 :20
7777 |
7878LL | let _ = if let Ok(_) = gen_res() {
7979 | -------^^^^^------------ help: try this: `if gen_res().is_ok()`
8080
8181error: redundant pattern matching, consider using `is_err()`
82- --> $DIR/redundant_pattern_matching.rs:60 :19
82+ --> $DIR/redundant_pattern_matching.rs:61 :19
8383 |
8484LL | } 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.rs:83 :19
88+ --> $DIR/redundant_pattern_matching.rs:84 :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.rs:84 :16
94+ --> $DIR/redundant_pattern_matching.rs:85 :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.rs:90 :12
100+ --> $DIR/redundant_pattern_matching.rs:91 :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.rs:91 :15
106+ --> $DIR/redundant_pattern_matching.rs:92 :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.rs:98 :12
112+ --> $DIR/redundant_pattern_matching.rs:110 :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.rs:100 :12
118+ --> $DIR/redundant_pattern_matching.rs:112 :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.rs:102 :15
124+ --> $DIR/redundant_pattern_matching.rs:114 :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.rs:104 :15
130+ --> $DIR/redundant_pattern_matching.rs:116 :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.rs:106 :5
136+ --> $DIR/redundant_pattern_matching.rs:118 :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.rs:111 :5
145+ --> $DIR/redundant_pattern_matching.rs:123 :5
146146 |
147147LL | / match Err::<i32, i32>(42) {
148148LL | | Ok(_) => false,
0 commit comments