@@ -165,6 +165,13 @@ match x {
165
165
d.. => a,
166
166
}
167
167
168
+ match name {
169
+ | "IPV6_FLOWINFO"
170
+ | "IPV6_FLOWLABEL_MGR"
171
+ | "IPV6_FLOWINFO_SEND" => true,
172
+ _ => false,
173
+ }
174
+
168
175
--------------------------------------------------------------------------------
169
176
170
177
(source_file
@@ -221,7 +228,26 @@ match x {
221
228
pattern: (match_pattern
222
229
(range_pattern
223
230
(identifier)))
224
- value: (identifier))))))
231
+ value: (identifier)))))
232
+ (expression_statement
233
+ (match_expression
234
+ value: (identifier)
235
+ body: (match_block
236
+ (match_arm
237
+ pattern: (match_pattern
238
+ (or_pattern
239
+ (or_pattern
240
+ (or_pattern
241
+ (string_literal
242
+ (string_content)))
243
+ (string_literal
244
+ (string_content)))
245
+ (string_literal
246
+ (string_content))))
247
+ value: (boolean_literal))
248
+ (match_arm
249
+ pattern: (match_pattern)
250
+ value: (boolean_literal))))))
225
251
226
252
================================================================================
227
253
Or patterns
@@ -251,12 +277,6 @@ fn foo((1 | 2 | 3): u8) {}
251
277
252
278
if let x!() | y!() = () {}
253
279
254
- // Discomment after box pattern land on master
255
- // let box (A | B | C);
256
-
257
- // Not handled cause devs didn't got into agreement if should be acceptd or not
258
- // |Ok(x) | Err(x)| expr();
259
-
260
280
--------------------------------------------------------------------------------
261
281
262
282
(source_file
@@ -387,11 +407,7 @@ if let x!() | y!() = () {}
387
407
macro: (identifier)
388
408
(token_tree)))
389
409
value: (unit_expression))
390
- consequence: (block)))
391
- (line_comment)
392
- (line_comment)
393
- (line_comment)
394
- (line_comment))
410
+ consequence: (block))))
395
411
396
412
================================================================================
397
413
Inline const or Const blocks as pattern
0 commit comments