Skip to content

Commit 71a4d32

Browse files
committed
Minor
1 parent ceca945 commit 71a4d32

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

xtask/src/codegen/rust.ungram

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ Visibility =
181181
| 'in' Path
182182
')')?
183183

184+
Attr =
185+
'#' '!'? '[' Path ('=' input:AttrInput)? ']'
186+
187+
AttrInput =
188+
Literal | TokenTree
189+
184190
ParenType =
185191
'(' TypeRef ')'
186192

@@ -421,9 +427,6 @@ MacroStmts =
421427
statements:Stmt*
422428
Expr?
423429

424-
Attr =
425-
'#' '!'? '[' Path ('=' input:AttrInput)? ']'
426-
427430
TypeBound =
428431
'lifetime' | 'const'? TypeRef
429432

@@ -493,10 +496,6 @@ TypeRef =
493496
| ImplTraitType
494497
| DynTraitType
495498

496-
AttrInput =
497-
Literal
498-
| TokenTree
499-
500499
Stmt =
501500
LetStmt
502501
| ExprStmt

0 commit comments

Comments
 (0)