mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-09 13:33:43 +00:00
Finalize WhereClause gramamr
This commit is contained in:
parent
b250ae6c55
commit
c04c06c4bc
@ -175,7 +175,13 @@ ConstParam =
|
||||
('=' default_val:Expr)?
|
||||
|
||||
LifetimeParam =
|
||||
Attr* 'lifetime'
|
||||
Attr* 'lifetime' (':' TypeBoundList?)?
|
||||
|
||||
WhereClause =
|
||||
'where' predicates:(WherePred (',' WherePred)* ','?)
|
||||
|
||||
WherePred =
|
||||
('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
|
||||
|
||||
Visibility =
|
||||
'pub' ('('
|
||||
@ -450,12 +456,6 @@ MacroStmts =
|
||||
statements:Stmt*
|
||||
Expr?
|
||||
|
||||
WherePred =
|
||||
('for' GenericParamList)? ('lifetime' | Type) ':' TypeBoundList
|
||||
|
||||
WhereClause =
|
||||
'where' predicates:WherePred*
|
||||
|
||||
ExprStmt =
|
||||
Attr* Expr ';'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user