mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add WherePred to allow predicate access in WhereClause
This also unifies parsing of WHERE_PRED bounds, now Lifetime bounds will also be parsed using TYPE_BOUND_LIST
This commit is contained in:
parent
4666138c91
commit
3f62ab8f51
5 changed files with 132 additions and 8 deletions
|
@ -595,7 +595,20 @@ Grammar(
|
|||
["bounds", "TypeBound"],
|
||||
]
|
||||
),
|
||||
"WhereClause": (),
|
||||
"WherePred": (
|
||||
options: [
|
||||
"TypeRef",
|
||||
"Lifetime",
|
||||
],
|
||||
traits: [
|
||||
"TypeBoundsOwner",
|
||||
],
|
||||
),
|
||||
"WhereClause": (
|
||||
collections: [
|
||||
["predicates", "WherePred"],
|
||||
],
|
||||
),
|
||||
"ExprStmt": (
|
||||
options: [ ["expr", "Expr"] ]
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue