diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-31 11:43:50 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-31 11:43:50 +0100 |
commit | dec9bde10868b5e459535449476d17a6a0987b3e (patch) | |
tree | 91bb5a70b999474e4d8212245fe265e71c3afde4 /crates/ra_parser/src | |
parent | 4666138c910a655deb0e8129b0a1dc5974b49bdf (diff) | |
parent | 3f62ab8f510fdac1eeab515c515c437d6dd141e6 (diff) |
Merge #1038
1038: Add WherePred to allow predicate access in WhereClause r=matklad a=vipentti
Lifetime bounds in where predicates are now also parsed into `TYPE_BOUND_LIST` to allow unified access to bounds.
Co-authored-by: Ville Penttinen <[email protected]>
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/grammar/type_params.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_parser/src/grammar/type_params.rs b/crates/ra_parser/src/grammar/type_params.rs index 42763fc87..07d9b0792 100644 --- a/crates/ra_parser/src/grammar/type_params.rs +++ b/crates/ra_parser/src/grammar/type_params.rs | |||
@@ -165,7 +165,7 @@ fn where_predicate(p: &mut Parser) { | |||
165 | LIFETIME => { | 165 | LIFETIME => { |
166 | p.bump(); | 166 | p.bump(); |
167 | if p.at(COLON) { | 167 | if p.at(COLON) { |
168 | lifetime_bounds(p); | 168 | bounds(p); |
169 | } else { | 169 | } else { |
170 | p.error("expected colon"); | 170 | p.error("expected colon"); |
171 | } | 171 | } |