Properly skip RPITITs from ModChild and give a name in AssocItem
This commit is contained in:
parent
76b0cf812b
commit
66714658d0
3 changed files with 10 additions and 9 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue