diff options
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 34 |
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 = | |||
516 | LiteralPat = | 516 | LiteralPat = |
517 | Literal | 517 | Literal |
518 | 518 | ||
519 | PathPat = | 519 | BindPat = |
520 | Path | 520 | Attr* 'ref'? 'mut'? Name ('@' Pat)? |
521 | 521 | ||
522 | PlaceholderPat = | 522 | PlaceholderPat = |
523 | '_' | 523 | '_' |
@@ -540,29 +540,29 @@ RecordPatFieldList = | |||
540 | RecordPatField = | 540 | RecordPatField = |
541 | Attr* (NameRef ':')? Pat | 541 | Attr* (NameRef ':')? Pat |
542 | 542 | ||
543 | OrPat = | 543 | TupleStructPat = |
544 | Pat* | 544 | Path '(' args:(Pat (',' Pat)* ','?)? ')' |
545 | |||
546 | TuplePat = | ||
547 | '(' args:(Pat (',' Pat)* ','?)? ')' | ||
545 | 548 | ||
546 | ParenPat = | 549 | ParenPat = |
547 | '(' Pat ')' | 550 | '(' Pat ')' |
548 | 551 | ||
549 | BoxPat = | 552 | SlicePat = |
550 | 'box' Path | 553 | '[' args:(Pat (',' Pat)* ','?)? ']' |
551 | 554 | ||
552 | BindPat = | 555 | PathPat = |
553 | Attr* 'ref'? 'mut'? Name ('@' Pat)? | 556 | Path |
557 | |||
558 | OrPat = | ||
559 | (Pat ('|' Pat)* '|'?) | ||
560 | |||
561 | BoxPat = | ||
562 | 'box' Pat | ||
554 | 563 | ||
555 | DotDotPat = | 564 | DotDotPat = |
556 | '..' | 565 | '..' |
557 | 566 | ||
558 | SlicePat = | ||
559 | '[' args:Pat* ']' | ||
560 | |||
561 | MacroPat = | 567 | MacroPat = |
562 | MacroCall | 568 | MacroCall |
563 | |||
564 | TupleStructPat = | ||
565 | Path '(' args:Pat* ')' | ||
566 | |||
567 | TuplePat = | ||
568 | '(' args:Pat* ')' | ||