Rollup merge of #124017 - oli-obk:define_opaque_types8, r=compiler-errors

Change a diagnostics-path-only `DefineOpaqueTypes` to `Yes`.

This can't possibly affect compilation, so it's safe to flip, even if I couldn't come up with an affected test

r? ``@compiler-errors``
This commit is contained in:
Matthias Krüger 2024-04-16 17:54:45 +02:00 committed by GitHub
commit 25fd90cea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1696,7 +1696,7 @@ fn consider_probe(
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;