Change a diagnostics-path-only DefineOpaqueTypes to Yes.

This commit is contained in:
Oli Scherer 2024-04-16 14:00:53 +00:00
parent 63f70b3d10
commit e03926c143

View File

@ -1696,7 +1696,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
if let ProbeResult::Match = result
&& self
.at(&ObligationCause::dummy(), self.param_env)
.sup(DefineOpaqueTypes::No, return_ty, xform_ret_ty)
.sup(DefineOpaqueTypes::Yes, return_ty, xform_ret_ty)
.is_err()
{
result = ProbeResult::BadReturnType;