about summary refs log tree commit diff
path: root/compiler/rustc_ast/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-03-04 17:10:55 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2025-03-12 09:35:11 +1100
commit0b2d7062c47fa385ff83e20dc53b13c8c5ba4616 (patch)
tree4bc279d596a743d5ea5d9defb03616783b67663d /compiler/rustc_ast/src
parentfe04460f6fdc32c0783ca7cab6a0fb73ed254100 (diff)
downloadrust-0b2d7062c47fa385ff83e20dc53b13c8c5ba4616.tar.gz
rust-0b2d7062c47fa385ff83e20dc53b13c8c5ba4616.zip
Introduce `sym::dummy` and `Ident::dummy`.
The idea is to identify cases of symbols/identifiers that are not
expected to be used. There isn't a perfectly sharp line between "dummy"
and "not dummy", but I think it's useful nonetheless.
Diffstat (limited to 'compiler/rustc_ast/src')
-rw-r--r--compiler/rustc_ast/src/mut_visit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/mut_visit.rs b/compiler/rustc_ast/src/mut_visit.rs
index e4396a50a15..fc31912283a 100644
--- a/compiler/rustc_ast/src/mut_visit.rs
+++ b/compiler/rustc_ast/src/mut_visit.rs
@@ -1948,7 +1948,7 @@ impl DummyAstNode for Item {
                 span: Default::default(),
                 tokens: Default::default(),
             },
-            ident: Ident::empty(),
+            ident: Ident::dummy(),
             kind: ItemKind::ExternCrate(None),
             tokens: Default::default(),
         }