mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Don't leave a marker hanging without completing it.
This commit is contained in:
parent
1059ec74e2
commit
1aba42128f
@ -118,7 +118,7 @@ pub(super) fn opt_where_clause(p: &mut Parser) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !comma {
|
if !comma {
|
||||||
p.error("expected comma")
|
p.error("expected comma");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -143,7 +143,6 @@ fn where_predicate(p: &mut Parser) {
|
|||||||
}
|
}
|
||||||
IMPL_KW => {
|
IMPL_KW => {
|
||||||
p.error("expected lifetime or type");
|
p.error("expected lifetime or type");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
types::type_(p);
|
types::type_(p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user