Function rustc_lint::non_local_def::ty_has_local_parent

source ยท
fn ty_has_local_parent(
    ty_kind: &TyKind<'_>,
    cx: &LateContext<'_>,
    impl_parent: DefId,
    impl_parent_parent: Option<DefId>,
) -> bool
Expand description

Given a Ty we check if the (outermost) type is local.