diff options
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 13 |
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 | ||
184 | Attr = | ||
185 | '#' '!'? '[' Path ('=' input:AttrInput)? ']' | ||
186 | |||
187 | AttrInput = | ||
188 | Literal | TokenTree | ||
189 | |||
184 | ParenType = | 190 | ParenType = |
185 | '(' TypeRef ')' | 191 | '(' TypeRef ')' |
186 | 192 | ||
@@ -421,9 +427,6 @@ MacroStmts = | |||
421 | statements:Stmt* | 427 | statements:Stmt* |
422 | Expr? | 428 | Expr? |
423 | 429 | ||
424 | Attr = | ||
425 | '#' '!'? '[' Path ('=' input:AttrInput)? ']' | ||
426 | |||
427 | TypeBound = | 430 | TypeBound = |
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 | ||
496 | AttrInput = | ||
497 | Literal | ||
498 | | TokenTree | ||
499 | |||
500 | Stmt = | 499 | Stmt = |
501 | LetStmt | 500 | LetStmt |
502 | | ExprStmt | 501 | | ExprStmt |