Function rustc_trait_selection::traits::coherence::negative_impl
source · fn negative_impl(
tcx: TyCtxt<'_>,
impl1_def_id: DefId,
impl2_def_id: DefId
) -> boolExpand description
Given impl1 and impl2 check if both impls are never satisfied by a common type (including where-clauses) If so, return true, they are disjoint and false otherwise.