diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-25 18:00:14 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-25 18:00:14 +1100 |
| commit | 501945a22e314bad511e08a187c0aa029df51038 (patch) | |
| tree | 62b7449db21f447e73eb7f586eea602b15486ead /compiler/rustc_parse/src/parser | |
| parent | 867da30cc71017597d9ed731b03a45c79accd873 (diff) | |
| download | rust-501945a22e314bad511e08a187c0aa029df51038.tar.gz rust-501945a22e314bad511e08a187c0aa029df51038.zip | |
Use `sym::dummy` for a dummy arg in `parse_fn_params`.
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index f4df4044dd2..123234fedce 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -2871,7 +2871,7 @@ impl<'a> Parser<'a> { // Skip every token until next possible arg or end. p.eat_to_tokens(&[exp!(Comma), exp!(CloseParen)]); // Create a placeholder argument for proper arg count (issue #34264). - 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)) }); // ...now that we've parsed the first argument, `self` is no longer allowed. first_param = false; |
