aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-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