rustc_hir_analysis::impl_wf_check::min_specialization

Function check_always_applicable

Source
fn check_always_applicable(
    tcx: TyCtxt<'_>,
    impl1_def_id: LocalDefId,
    impl2_node: Node,
) -> Result<(), ErrorGuaranteed>
Expand description

Check that impl1 is a sound specialization