about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/def.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-05-02 13:17:47 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-05-02 13:36:55 +0200
commitefc51ce993f27cfb192e37f936941ff613846b98 (patch)
treee3687adbac0322d78abd8d0782a1e5938e9e0206 /compiler/rustc_hir/src/def.rs
parentddff38703a3e56b26f5a73d56208a8adab5daae1 (diff)
downloadrust-efc51ce993f27cfb192e37f936941ff613846b98.tar.gz
rust-efc51ce993f27cfb192e37f936941ff613846b98.zip
Add `DefPathData::NestedStatic` instead of reusing `DefPathData::AnonConst`
Diffstat (limited to 'compiler/rustc_hir/src/def.rs')
-rw-r--r--compiler/rustc_hir/src/def.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_hir/src/def.rs b/compiler/rustc_hir/src/def.rs
index 5872ec5aedf..507c94aca8b 100644
--- a/compiler/rustc_hir/src/def.rs
+++ b/compiler/rustc_hir/src/def.rs
@@ -273,9 +273,6 @@ impl DefKind {
             // but those provide their own DefPathData.
             DefKind::AssocTy => DefPathData::TypeNs(name.unwrap()),
 
-            // It's not exactly an anon const, but wrt DefPathData, there
-            // is no difference.
-            DefKind::Static { nested: true, .. } => DefPathData::AnonConst,
             DefKind::Fn
             | DefKind::Const
             | DefKind::ConstParam