aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-30 18:10:22 +0100
committerAleksey Kladov <[email protected]>2020-07-30 18:10:22 +0100
commit71a4d325620ede42e8e6fad55ab95430eb47e1fd (patch)
tree214af35ab87aa34b6d16d72560ab39156e9b5631
parentceca94536c7346287e533cd93467c7dc5bf1ed52 (diff)
Minor
-rw-r--r--xtask/src/codegen/rust.ungram13
1 files changed, 6 insertions, 7 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index b773eaf8b..74fe65633 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -181,6 +181,12 @@ Visibility =
181 | 'in' Path 181 | 'in' Path
182 ')')? 182 ')')?
183 183
184Attr =
185 '#' '!'? '[' Path ('=' input:AttrInput)? ']'
186
187AttrInput =
188 Literal | TokenTree
189
184ParenType = 190ParenType =
185 '(' TypeRef ')' 191 '(' TypeRef ')'
186 192
@@ -421,9 +427,6 @@ MacroStmts =
421 statements:Stmt* 427 statements:Stmt*
422 Expr? 428 Expr?
423 429
424Attr =
425 '#' '!'? '[' Path ('=' input:AttrInput)? ']'
426
427TypeBound = 430TypeBound =
428 'lifetime' | 'const'? TypeRef 431 'lifetime' | 'const'? TypeRef
429 432
@@ -493,10 +496,6 @@ TypeRef =
493| ImplTraitType 496| ImplTraitType
494| DynTraitType 497| DynTraitType
495 498
496AttrInput =
497 Literal
498| TokenTree
499
500Stmt = 499Stmt =
501 LetStmt 500 LetStmt
502| ExprStmt 501| ExprStmt