From d16daf5cbaed54758eaf928ee3f63528c2da6efd Mon Sep 17 00:00:00 2001 From: John Kåre Alsaker Date: Fri, 2 May 2025 13:37:22 +0200 Subject: Add comment about the symbol on `AnonAssocTy` --- compiler/rustc_hir/src/definitions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler') 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, -- cgit 1.4.1-3-g733a5