We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sym::dummy
parse_fn_params
1 parent 867da30 commit 501945aCopy full SHA for 501945a
compiler/rustc_parse/src/parser/item.rs
@@ -2871,7 +2871,7 @@ impl<'a> Parser<'a> {
2871
// Skip every token until next possible arg or end.
2872
p.eat_to_tokens(&[exp!(Comma), exp!(CloseParen)]);
2873
// 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))
+ Ok(dummy_arg(Ident::new(sym::dummy, lo.to(p.prev_token.span)), guar))
2875
});
2876
// ...now that we've parsed the first argument, `self` is no longer allowed.
2877
first_param = false;
0 commit comments