1 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
4 26 | / match ExprNode::Butterflies {
5 27 | | ExprNode::ExprAddrOf => Some(&NODE),
6 28 | | _ => { let x = 5; None },
8 | |_____^ help: try this `if let ExprNode::ExprAddrOf = ExprNode::Butterflies { Some(&NODE) } else { let x = 5; None }`
10 = note: `-D single-match-else` implied by `-D warnings`
12 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
16 36 | | Some(y) => { println!("{:?}", y); }
19 | |_____^ help: try this `if let Some(y) = x { println!("{:?}", y); }`
21 = note: `-D single-match` implied by `-D warnings`
23 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
27 42 | | (2...3, 7...9) => dummy(),
30 | |_____^ help: try this `if let (2...3, 7...9) = z { dummy() }`
32 = note: `-D single-match` implied by `-D warnings`
34 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
38 64 | | Some(y) => dummy(),
41 | |_____^ help: try this `if let Some(y) = x { dummy() }`
43 = note: `-D single-match` implied by `-D warnings`
45 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
49 69 | | Ok(y) => dummy(),
52 | |_____^ help: try this `if let Ok(y) = y { dummy() }`
54 = note: `-D single-match` implied by `-D warnings`
56 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
60 76 | | Cow::Borrowed(..) => dummy(),
61 77 | | Cow::Owned(..) => (),
63 | |_____^ help: try this `if let Cow::Borrowed(..) = c { dummy() }`
65 = note: `-D single-match` implied by `-D warnings`
67 error: you seem to be trying to match on a boolean expression
74 | |_____^ help: consider using an if/else expression `if test { 0 } else { 42 }`
76 = note: `-D match-bool` implied by `-D warnings`
78 error: you seem to be trying to match on a boolean expression
81 102 | / match option == 1 {
85 | |_____^ help: consider using an if/else expression `if option == 1 { 1 } else { 0 }`
87 = note: `-D match-bool` implied by `-D warnings`
89 error: you seem to be trying to match on a boolean expression
94 109 | | false => { println!("Noooo!"); }
96 | |_____^ help: consider using an if/else expression `if !test { println!("Noooo!"); }`
98 = note: `-D match-bool` implied by `-D warnings`
100 error: you seem to be trying to match on a boolean expression
104 113 | | false => { println!("Noooo!"); }
107 | |_____^ help: consider using an if/else expression `if !test { println!("Noooo!"); }`
109 = note: `-D match-bool` implied by `-D warnings`
111 error: you seem to be trying to match on a boolean expression
114 117 | / match test && test {
115 118 | | false => { println!("Noooo!"); }
118 | |_____^ help: consider using an if/else expression `if !(test && test) { println!("Noooo!"); }`
120 = note: `-D match-bool` implied by `-D warnings`
122 error: equal expressions as operands to `&&`
123 --> matches.rs:117:11
125 117 | match test && test {
128 = note: `-D eq-op` implied by `-D warnings`
130 error: you seem to be trying to match on a boolean expression
134 123 | | false => { println!("Noooo!"); }
135 124 | | true => { println!("Yes!"); }
137 | |_____^ help: consider using an if/else expression `if test { println!("Yes!"); } else { println!("Noooo!"); }`
139 = note: `-D match-bool` implied by `-D warnings`
141 error: you don't need to add `&` to all patterns
145 139 | | &Some(v) => println!("{:?}", v),
146 140 | | &None => println!("none"),
150 = note: `-D match-ref-pats` implied by `-D warnings`
151 help: instead of prefixing all patterns with `&`, you can dereference the expression
154 error: you don't need to add `&` to all patterns
158 149 | | &(v, 1) => println!("{}", v),
159 150 | | _ => println!("none"),
163 = note: `-D match-ref-pats` implied by `-D warnings`
164 help: instead of prefixing all patterns with `&`, you can dereference the expression
167 error: you don't need to add `&` to both the expression and the patterns
171 155 | | &Some(v) => println!("{:?}", v),
172 156 | | &None => println!("none"),
174 | |_____^ help: try `match w { .. }`
176 = note: `-D match-ref-pats` implied by `-D warnings`
178 error: you don't need to add `&` to all patterns
181 165 | / if let &None = a {
182 166 | | println!("none");
186 = note: `-D match-ref-pats` implied by `-D warnings`
187 help: instead of prefixing all patterns with `&`, you can dereference the expression
188 | if let .. = *a { .. }
190 error: you don't need to add `&` to both the expression and the patterns
193 170 | / if let &None = &b {
194 171 | | println!("none");
196 | |_____^ help: try `if let .. = b { .. }`
198 = note: `-D match-ref-pats` implied by `-D warnings`
200 error: some ranges overlap
203 179 | 0 ... 10 => println!("0 ... 10"),
206 = note: `-D match-overlapping-arm` implied by `-D warnings`
207 note: overlaps with this
210 180 | 0 ... 11 => println!("0 ... 11"),
213 error: some ranges overlap
216 185 | 0 ... 5 => println!("0 ... 5"),
219 = note: `-D match-overlapping-arm` implied by `-D warnings`
220 note: overlaps with this
223 187 | FOO ... 11 => println!("0 ... 11"),
226 error: some ranges overlap
229 193 | 0 ... 5 => println!("0 ... 5"),
232 = note: `-D match-overlapping-arm` implied by `-D warnings`
233 note: overlaps with this
236 192 | 2 => println!("2"),
239 error: some ranges overlap
242 199 | 0 ... 2 => println!("0 ... 2"),
245 = note: `-D match-overlapping-arm` implied by `-D warnings`
246 note: overlaps with this
249 198 | 2 => println!("2"),
252 error: some ranges overlap
255 222 | 0 .. 11 => println!("0 .. 11"),
258 = note: `-D match-overlapping-arm` implied by `-D warnings`
259 note: overlaps with this
262 223 | 0 ... 11 => println!("0 ... 11"),
265 error: Err(_) will match all errors, maybe not a good idea
268 240 | Err(_) => panic!("err")
271 = note: `-D match-wild-err-arm` implied by `-D warnings`
272 = note: to remove this warning, match each error seperately or use unreachable macro
274 error: Err(_) will match all errors, maybe not a good idea
277 246 | Err(_) => {panic!()}
280 = note: `-D match-wild-err-arm` implied by `-D warnings`
281 = note: to remove this warning, match each error seperately or use unreachable macro
283 error: Err(_) will match all errors, maybe not a good idea
286 252 | Err(_) => {panic!();}
289 = note: `-D match-wild-err-arm` implied by `-D warnings`
290 = note: to remove this warning, match each error seperately or use unreachable macro
292 error: aborting due to previous error(s)
295 To learn more, run the command again with --verbose.