mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
fix: emit parser error for missing argument list
This commit is contained in:
parent
0113bc9388
commit
c495e3f00f
1 changed files with 3 additions and 0 deletions
|
@ -530,6 +530,9 @@ fn method_call_expr<const FLOAT_RECOVERY: bool>(
|
|||
generic_args::opt_generic_arg_list(p, true);
|
||||
if p.at(T!['(']) {
|
||||
arg_list(p);
|
||||
} else {
|
||||
// emit an error when argument list is missing
|
||||
p.error("expected argument list");
|
||||
}
|
||||
m.complete(p, METHOD_CALL_EXPR)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue