From 1aba42128f79993a092a8c0b3747acdc8f1b1be7 Mon Sep 17 00:00:00 2001 From: Erlend Tobiassen Date: Tue, 22 Jan 2019 01:25:00 +0100 Subject: Don't leave a marker hanging without completing it. --- crates/ra_syntax/src/grammar/type_params.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates') 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) { } if !comma { - p.error("expected comma") + p.error("expected comma"); } } } @@ -143,7 +143,6 @@ fn where_predicate(p: &mut Parser) { } IMPL_KW => { p.error("expected lifetime or type"); - return; } _ => { types::type_(p); -- cgit v1.2.3