about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-05-02 13:37:22 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-05-02 13:37:22 +0200
commitd16daf5cbaed54758eaf928ee3f63528c2da6efd (patch)
treeedee17e966129972593dab5ddbb08b115ceb1f89 /compiler
parentefc51ce993f27cfb192e37f936941ff613846b98 (diff)
downloadrust-d16daf5cbaed54758eaf928ee3f63528c2da6efd.tar.gz
rust-d16daf5cbaed54758eaf928ee3f63528c2da6efd.zip
Add comment about the symbol on `AnonAssocTy`
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_hir/src/definitions.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/definitions.rs b/compiler/rustc_hir/src/definitions.rs
index 74ef2f5557c..1a0af38517a 100644
--- a/compiler/rustc_hir/src/definitions.rs
+++ b/compiler/rustc_hir/src/definitions.rs
@@ -309,7 +309,8 @@ pub enum DefPathData {
     /// An existential `impl Trait` type node.
     /// Argument position `impl Trait` have a `TypeNs` with their pretty-printed name.
     OpaqueTy,
-    /// An anonymous associated type from an RPITIT.
+    /// An anonymous associated type from an RPITIT. The symbol refers to the name of the method
+    /// that defined the type.
     AnonAssocTy(Symbol),
     /// A synthetic body for a coroutine's by-move body.
     SyntheticCoroutineBody,