aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/codegen/rust.ungram34
1 files changed, 17 insertions, 17 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 643668863..cb8a307fe 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -516,8 +516,8 @@ Pat =
516LiteralPat = 516LiteralPat =
517 Literal 517 Literal
518 518
519PathPat = 519BindPat =
520 Path 520 Attr* 'ref'? 'mut'? Name ('@' Pat)?
521 521
522PlaceholderPat = 522PlaceholderPat =
523 '_' 523 '_'
@@ -540,29 +540,29 @@ RecordPatFieldList =
540RecordPatField = 540RecordPatField =
541 Attr* (NameRef ':')? Pat 541 Attr* (NameRef ':')? Pat
542 542
543OrPat = 543TupleStructPat =
544 Pat* 544 Path '(' args:(Pat (',' Pat)* ','?)? ')'
545
546TuplePat =
547 '(' args:(Pat (',' Pat)* ','?)? ')'
545 548
546ParenPat = 549ParenPat =
547 '(' Pat ')' 550 '(' Pat ')'
548 551
549BoxPat = 552SlicePat =
550 'box' Path 553 '[' args:(Pat (',' Pat)* ','?)? ']'
551 554
552BindPat = 555PathPat =
553 Attr* 'ref'? 'mut'? Name ('@' Pat)? 556 Path
557
558OrPat =
559 (Pat ('|' Pat)* '|'?)
560
561BoxPat =
562 'box' Pat
554 563
555DotDotPat = 564DotDotPat =
556 '..' 565 '..'
557 566
558SlicePat =
559 '[' args:Pat* ']'
560
561MacroPat = 567MacroPat =
562 MacroCall 568 MacroCall
563
564TupleStructPat =
565 Path '(' args:Pat* ')'
566
567TuplePat =
568 '(' args:Pat* ')'