mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Fix parser to correctly consume outer attrs before ellipsis param
This commit is contained in:
parent
9ea36703d2
commit
79d4202194
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ fn list_(p: &mut Parser, flavor: Flavor) {
|
||||||
while !p.at(EOF) && !p.at(ket) && !(flavor.type_required() && p.at(T![...])) {
|
while !p.at(EOF) && !p.at(ket) && !(flavor.type_required() && p.at(T![...])) {
|
||||||
attributes::outer_attributes(p);
|
attributes::outer_attributes(p);
|
||||||
|
|
||||||
|
if p.at(T![...]) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if !p.at_ts(VALUE_PARAMETER_FIRST) {
|
if !p.at_ts(VALUE_PARAMETER_FIRST) {
|
||||||
p.error("expected value parameter");
|
p.error("expected value parameter");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue