@@ -19,19 +19,19 @@ LL | if let Err(_) = Err::<i32, i32>(42) {}
1919 | -------^^^^^^---------------------- help: try this: `if Err::<i32, i32>(42).is_err()`
2020
2121error: redundant pattern matching, consider using `is_ok()`
22- --> $DIR/redundant_pattern_matching.rs:21 :15
22+ --> $DIR/redundant_pattern_matching.rs:22 :15
2323 |
2424LL | while let Ok(_) = Ok::<i32, i32>(10) {}
2525 | ----------^^^^^--------------------- help: try this: `while Ok::<i32, i32>(10).is_ok()`
2626
2727error: redundant pattern matching, consider using `is_err()`
28- --> $DIR/redundant_pattern_matching.rs:23 :15
28+ --> $DIR/redundant_pattern_matching.rs:24 :15
2929 |
3030LL | while let Err(_) = Ok::<i32, i32>(10) {}
3131 | ----------^^^^^^--------------------- help: try this: `while Ok::<i32, i32>(10).is_err()`
3232
3333error: redundant pattern matching, consider using `is_ok()`
34- --> $DIR/redundant_pattern_matching.rs:33 :5
34+ --> $DIR/redundant_pattern_matching.rs:34 :5
3535 |
3636LL | / match Ok::<i32, i32>(42) {
3737LL | | Ok(_) => true,
@@ -40,7 +40,7 @@ LL | | };
4040 | |_____^ help: try this: `Ok::<i32, i32>(42).is_ok()`
4141
4242error: redundant pattern matching, consider using `is_err()`
43- --> $DIR/redundant_pattern_matching.rs:38 :5
43+ --> $DIR/redundant_pattern_matching.rs:39 :5
4444 |
4545LL | / match Ok::<i32, i32>(42) {
4646LL | | Ok(_) => false,
@@ -49,7 +49,7 @@ LL | | };
4949 | |_____^ help: try this: `Ok::<i32, i32>(42).is_err()`
5050
5151error: redundant pattern matching, consider using `is_err()`
52- --> $DIR/redundant_pattern_matching.rs:43 :5
52+ --> $DIR/redundant_pattern_matching.rs:44 :5
5353 |
5454LL | / match Err::<i32, i32>(42) {
5555LL | | Ok(_) => false,
@@ -58,7 +58,7 @@ LL | | };
5858 | |_____^ help: try this: `Err::<i32, i32>(42).is_err()`
5959
6060error: redundant pattern matching, consider using `is_ok()`
61- --> $DIR/redundant_pattern_matching.rs:48 :5
61+ --> $DIR/redundant_pattern_matching.rs:49 :5
6262 |
6363LL | / match Err::<i32, i32>(42) {
6464LL | | Ok(_) => true,
@@ -67,73 +67,73 @@ LL | | };
6767 | |_____^ help: try this: `Err::<i32, i32>(42).is_ok()`
6868
6969error: redundant pattern matching, consider using `is_ok()`
70- --> $DIR/redundant_pattern_matching.rs:53 :20
70+ --> $DIR/redundant_pattern_matching.rs:54 :20
7171 |
7272LL | 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:59 :20
76+ --> $DIR/redundant_pattern_matching.rs:60 :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:61 :19
82+ --> $DIR/redundant_pattern_matching.rs:62 :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:84 :19
88+ --> $DIR/redundant_pattern_matching.rs:85 :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:85 :16
94+ --> $DIR/redundant_pattern_matching.rs:86 :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:91 :12
100+ --> $DIR/redundant_pattern_matching.rs:92 :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:92 :15
106+ --> $DIR/redundant_pattern_matching.rs:93 :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:110 :12
112+ --> $DIR/redundant_pattern_matching.rs:111 :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:112 :12
118+ --> $DIR/redundant_pattern_matching.rs:113 :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:114 :15
124+ --> $DIR/redundant_pattern_matching.rs:115 :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:116 :15
130+ --> $DIR/redundant_pattern_matching.rs:117 :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:118 :5
136+ --> $DIR/redundant_pattern_matching.rs:119 :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:123 :5
145+ --> $DIR/redundant_pattern_matching.rs:124 :5
146146 |
147147LL | / match Err::<i32, i32>(42) {
148148LL | | Ok(_) => false,
0 commit comments