mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +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)?
|
('=' 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 ';'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue