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

@ -165,7 +165,7 @@ fn where_predicate(p: &mut Parser) {
LIFETIME => {
p.bump();
if p.at(COLON) {
lifetime_bounds(p);
bounds(p);
} else {
p.error("expected colon");
}