1
Fork 0

Properly skip RPITITs from ModChild and give a name in AssocItem

This commit is contained in:
Santiago Pastorino 2023-03-27 18:33:04 -03:00
parent 76b0cf812b
commit 66714658d0
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 10 additions and 9 deletions

View file

@ -404,12 +404,8 @@ impl DefPathData {
match *self {
TypeNs(name) | ValueNs(name) | MacroNs(name) | LifetimeNs(name) => Some(name),
// We use this name when collecting `ModChild`s.
// FIXME this could probably be removed with some refactoring to the name resolver.
ImplTraitAssocTy => Some(kw::Empty),
Impl | ForeignMod | CrateRoot | Use | GlobalAsm | ClosureExpr | Ctor | AnonConst
| ImplTrait => None,
| ImplTrait | ImplTraitAssocTy => None,
}
}