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:
Ville Penttinen 2019-03-24 19:45:11 +02:00
parent 4666138c91
commit 3f62ab8f51
5 changed files with 132 additions and 8 deletions

View file

@ -595,7 +595,20 @@ Grammar(
["bounds", "TypeBound"],
]
),
"WhereClause": (),
"WherePred": (
options: [
"TypeRef",
"Lifetime",
],
traits: [
"TypeBoundsOwner",
],
),
"WhereClause": (
collections: [
["predicates", "WherePred"],
],
),
"ExprStmt": (
options: [ ["expr", "Expr"] ]
),