1
Fork 0

Factor signature type walking out of opaque_types_defined_by

This commit is contained in:
Oli Scherer 2023-07-14 11:56:16 +00:00
parent 5c9a74d88b
commit 3121576d70
4 changed files with 155 additions and 44 deletions

View file

@ -3781,6 +3781,7 @@ impl<'hir> Node<'hir> {
ItemKind::TyAlias(ty, _)
| ItemKind::Static(ty, _, _)
| ItemKind::Const(ty, _, _) => Some(ty),
ItemKind::Impl(impl_item) => Some(&impl_item.self_ty),
_ => None,
},
Node::TraitItem(it) => match it.kind {