We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceca945 commit 71a4d32Copy full SHA for 71a4d32
xtask/src/codegen/rust.ungram
@@ -181,6 +181,12 @@ Visibility =
181
| 'in' Path
182
')')?
183
184
+Attr =
185
+ '#' '!'? '[' Path ('=' input:AttrInput)? ']'
186
+
187
+AttrInput =
188
+ Literal | TokenTree
189
190
ParenType =
191
'(' TypeRef ')'
192
@@ -421,9 +427,6 @@ MacroStmts =
421
427
statements:Stmt*
422
428
Expr?
423
429
424
-Attr =
425
- '#' '!'? '[' Path ('=' input:AttrInput)? ']'
426
-
430
TypeBound =
431
'lifetime' | 'const'? TypeRef
432
@@ -493,10 +496,6 @@ TypeRef =
493
496
| ImplTraitType
494
497
| DynTraitType
495
498
-AttrInput =
- Literal
-| TokenTree
499
500
Stmt =
501
LetStmt
502
| ExprStmt
0 commit comments