Finalize WhereClause gramamr
This commit is contained in:
@@ -175,7 +175,13 @@ ConstParam =
|
|||||||
('=' default_val:Expr)?
|
('=' default_val:Expr)?
|
||||||
|
|
||||||
LifetimeParam =
|
LifetimeParam =
|
||||||
Attr* 'lifetime'
|
Attr* 'lifetime' (':' TypeBoundList?)?
|
||||||
|
|
||||||
|
WhereClause =
|
||||||
|
'where' predicates:(WherePred (',' WherePred)* ','?)
|
||||||
|
|
||||||
|
WherePred =
|
||||||
|
('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
|
||||||
|
|
||||||
Visibility =
|
Visibility =
|
||||||
'pub' ('('
|
'pub' ('('
|
||||||
@@ -450,12 +456,6 @@ MacroStmts =
|
|||||||
statements:Stmt*
|
statements:Stmt*
|
||||||
Expr?
|
Expr?
|
||||||
|
|
||||||
WherePred =
|
|
||||||
('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
|
|
||||||
|
|
||||||
WhereClause =
|
|
||||||
'where' predicates:WherePred*
|
|
||||||
|
|
||||||
ExprStmt =
|
ExprStmt =
|
||||||
Attr* Expr ';'
|
Attr* Expr ';'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user