fn path_has_local_parent(
path: &Path<'_>,
cx: &LateContext<'_>,
impl_parent: DefId,
outermost_impl_parent: Option<DefId>,
) -> bool
Expand description
Given a path, this checks if the if the parent resolution def id corresponds to the def id of the parent impl definition (the direct one and the outermost one).
Given this path, we will look at the path (and ignore any generic args):
std::convert::PartialEq<Foo<Bar>>
^^^^^^^^^^^^^^^^^^^^^^^