Make fns from other crates with RPITIT work

This commit is contained in:
Santiago Pastorino 2023-03-08 17:59:06 -03:00
parent b535da6841
commit a4e40370d0
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 13 additions and 1 deletions

View file

@ -404,8 +404,12 @@ 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 | ImplTraitAssocTy => None,
| ImplTrait => None,
}
}