fn orphan_check_impl(
    tcx: TyCtxt<'_>,
    def_id: LocalDefId
) -> Result<(), ErrorReported>