This commit is contained in:
Aleksey Kladov 2020-07-30 19:10:22 +02:00
parent ceca94536c
commit 71a4d32562

View file

@ -181,6 +181,12 @@ Visibility =
| 'in' Path
')')?
Attr =
'#' '!'? '[' Path ('=' input:AttrInput)? ']'
AttrInput =
Literal | TokenTree
ParenType =
'(' TypeRef ')'
@ -421,9 +427,6 @@ MacroStmts =
statements:Stmt*
Expr?
Attr =
'#' '!'? '[' Path ('=' input:AttrInput)? ']'
TypeBound =
'lifetime' | 'const'? TypeRef
@ -493,10 +496,6 @@ TypeRef =
| ImplTraitType
| DynTraitType
AttrInput =
Literal
| TokenTree
Stmt =
LetStmt
| ExprStmt