Add comment about the symbol on AnonAssocTy

This commit is contained in:
John Kåre Alsaker
2025-05-02 13:37:22 +02:00
parent efc51ce993
commit d16daf5cba

View File

@@ -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,