mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Fix some more bugs
This commit is contained in:
parent
7d0c9cf546
commit
439e0fd32e
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue