fn type_has_partial_eq_impl<'tcx>( tcx: TyCtxt<'tcx>, typing_env: TypingEnv<'tcx>, ty: Ty<'tcx>, ) -> (bool, bool, bool, Option<DefId>)