Fix some more bugs

This commit is contained in:
Aleksey Kladov 2018-08-13 18:46:43 +03:00
parent 7d0c9cf546
commit 439e0fd32e
2 changed files with 8 additions and 2 deletions

View file

@ -264,7 +264,9 @@ fn method_call_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker {
p.bump();
name_ref(p);
type_args::type_arg_list(p, true);
arg_list(p);
if p.at(L_PAREN) {
arg_list(p);
}
m.complete(p, METHOD_CALL_EXPR)
}

View file

@ -118,7 +118,11 @@ fn where_predicate(p: &mut Parser) {
let m = p.start();
if p.at(LIFETIME) {
p.eat(LIFETIME);
lifetime_bounds(p)
if p.at(COLON) {
lifetime_bounds(p)
} else {
p.error("expected colon")
}
} else {
types::path_type(p);
if p.at(COLON) {