Factor signature type walking out of opaque_types_defined_by
This commit is contained in:
parent
5c9a74d88b
commit
3121576d70
4 changed files with 155 additions and 44 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue