mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +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();
|
p.bump();
|
||||||
name_ref(p);
|
name_ref(p);
|
||||||
type_args::type_arg_list(p, true);
|
type_args::type_arg_list(p, true);
|
||||||
|
if p.at(L_PAREN) {
|
||||||
arg_list(p);
|
arg_list(p);
|
||||||
|
}
|
||||||
m.complete(p, METHOD_CALL_EXPR)
|
m.complete(p, METHOD_CALL_EXPR)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,11 @@ fn where_predicate(p: &mut Parser) {
|
||||||
let m = p.start();
|
let m = p.start();
|
||||||
if p.at(LIFETIME) {
|
if p.at(LIFETIME) {
|
||||||
p.eat(LIFETIME);
|
p.eat(LIFETIME);
|
||||||
|
if p.at(COLON) {
|
||||||
lifetime_bounds(p)
|
lifetime_bounds(p)
|
||||||
|
} else {
|
||||||
|
p.error("expected colon")
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
types::path_type(p);
|
types::path_type(p);
|
||||||
if p.at(COLON) {
|
if p.at(COLON) {
|
||||||
|
|
Loading…
Reference in a new issue