aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorErlend Tobiassen <[email protected]>2019-01-22 00:25:00 +0000
committerErlend Tobiassen <[email protected]>2019-01-22 00:25:00 +0000
commit1aba42128f79993a092a8c0b3747acdc8f1b1be7 (patch)
tree46d6267cc0aa0580ba58607f822d7c1352b6d60b /crates/ra_syntax/src
parent1059ec74e2147559b43aab9b12f84849319910cc (diff)
Don't leave a marker hanging without completing it.
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/grammar/type_params.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/grammar/type_params.rs b/crates/ra_syntax/src/grammar/type_params.rs
index fe9dba2ae..f33ec10f5 100644
--- a/crates/ra_syntax/src/grammar/type_params.rs
+++ b/crates/ra_syntax/src/grammar/type_params.rs
@@ -118,7 +118,7 @@ pub(super) fn opt_where_clause(p: &mut Parser) {
118 } 118 }
119 119
120 if !comma { 120 if !comma {
121 p.error("expected comma") 121 p.error("expected comma");
122 } 122 }
123 } 123 }
124 } 124 }
@@ -143,7 +143,6 @@ fn where_predicate(p: &mut Parser) {
143 } 143 }
144 IMPL_KW => { 144 IMPL_KW => {
145 p.error("expected lifetime or type"); 145 p.error("expected lifetime or type");
146 return;
147 } 146 }
148 _ => { 147 _ => {
149 types::type_(p); 148 types::type_(p);