mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Allow placeholder parameters in trait fn defs
This commit is contained in:
parent
595a2f9900
commit
234b65fd61
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ fn value_parameter(p: &mut Parser, flavor: Flavor) {
|
|||
let la1 = p.nth(1);
|
||||
let la2 = p.nth(2);
|
||||
let la3 = p.nth(3);
|
||||
if la0 == IDENT && la1 == COLON
|
||||
if (la0 == IDENT || la0 == UNDERSCORE) && la1 == COLON
|
||||
|| la0 == AMP && la1 == IDENT && la2 == COLON
|
||||
|| la0 == AMP && la1 == MUT_KW && la2 == IDENT && la3 == COLON
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue