fn emit_orphan_check_error<'tcx>(
    tcx: TyCtxt<'tcx>,
    trait_ref: TraitRef<'tcx>,
    impl_def_id: LocalDefId,
    err: OrphanCheckErr<'tcx, FxIndexSet<DefId>>
) -> ErrorGuaranteed