Skip to content

Commit d16daf5

Browse files
committed
Add comment about the symbol on AnonAssocTy
1 parent efc51ce commit d16daf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_hir/src/definitions.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ pub enum DefPathData {
309309
/// An existential `impl Trait` type node.
310310
/// Argument position `impl Trait` have a `TypeNs` with their pretty-printed name.
311311
OpaqueTy,
312-
/// An anonymous associated type from an RPITIT.
312+
/// An anonymous associated type from an RPITIT. The symbol refers to the name of the method
313+
/// that defined the type.
313314
AnonAssocTy(Symbol),
314315
/// A synthetic body for a coroutine's by-move body.
315316
SyntheticCoroutineBody,

0 commit comments

Comments
 (0)