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