about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-03-24 18:58:18 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-03-25 16:14:27 +1100
commitbd61e0129f4ff393ad350f05442a9f1ac3ddbd44 (patch)
tree5da7f375c743e1022552f4286af997f4e4d65bc8
parent1a6266340e53e3f663b49f71a14461dafa47de47 (diff)
downloadrust-bd61e0129f4ff393ad350f05442a9f1ac3ddbd44.tar.gz
rust-bd61e0129f4ff393ad350f05442a9f1ac3ddbd44.zip
Use `Ident::dummy()` in `dummy_annotatable`.
This is exactly the kind of case `Ident::dummy()` is for.
-rw-r--r--compiler/rustc_builtin_macros/src/derive.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/derive.rs b/compiler/rustc_builtin_macros/src/derive.rs
index 2653a9f48b9..e259f5b3955 100644
--- a/compiler/rustc_builtin_macros/src/derive.rs
+++ b/compiler/rustc_builtin_macros/src/derive.rs
@@ -103,7 +103,7 @@ impl MultiItemModifier for Expander {
 fn dummy_annotatable() -> Annotatable {
     Annotatable::GenericParam(ast::GenericParam {
         id: ast::DUMMY_NODE_ID,
-        ident: Ident::empty(),
+        ident: Ident::dummy(),
         attrs: Default::default(),
         bounds: Default::default(),
         is_placeholder: false,