Skip to content

Commit 501945a

Browse files
committed
Use sym::dummy for a dummy arg in parse_fn_params.
1 parent 867da30 commit 501945a

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_parse/src/parser/item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2871,7 +2871,7 @@ impl<'a> Parser<'a> {
28712871
// Skip every token until next possible arg or end.
28722872
p.eat_to_tokens(&[exp!(Comma), exp!(CloseParen)]);
28732873
// Create a placeholder argument for proper arg count (issue #34264).
2874-
Ok(dummy_arg(Ident::new(kw::Empty, lo.to(p.prev_token.span)), guar))
2874+
Ok(dummy_arg(Ident::new(sym::dummy, lo.to(p.prev_token.span)), guar))
28752875
});
28762876
// ...now that we've parsed the first argument, `self` is no longer allowed.
28772877
first_param = false;

0 commit comments

Comments
 (0)