mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +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
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue