mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Finalize WhereClause gramamr
This commit is contained in:
parent
b250ae6c55
commit
c04c06c4bc
1 changed files with 7 additions and 7 deletions
|
@ -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 a new issue