aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-31 19:04:40 +0100
committerAleksey Kladov <[email protected]>2020-07-31 19:04:40 +0100
commitd7f75db90d99216c13000681ff2c4a887451c4b2 (patch)
tree5e5a61ed573a41ed6cddddc1a676676d2d70180b /xtask/src
parent14cb96ec0e6be3b99bfe4ea373c058dcbd2a4f79 (diff)
Reorder
Diffstat (limited to 'xtask/src')
-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* ')'