mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-24 21:05:12 +00:00
fix: emit parser error for missing argument list
This commit is contained in:
parent
0113bc9388
commit
c495e3f00f
@ -530,6 +530,9 @@ fn method_call_expr<const FLOAT_RECOVERY: bool>(
|
|||||||
generic_args::opt_generic_arg_list(p, true);
|
generic_args::opt_generic_arg_list(p, true);
|
||||||
if p.at(T!['(']) {
|
if p.at(T!['(']) {
|
||||||
arg_list(p);
|
arg_list(p);
|
||||||
|
} else {
|
||||||
|
// emit an error when argument list is missing
|
||||||
|
p.error("expected argument list");
|
||||||
}
|
}
|
||||||
m.complete(p, METHOD_CALL_EXPR)
|
m.complete(p, METHOD_CALL_EXPR)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user