Skip to content

Commit

Permalink
Rollup merge of rust-lang#124017 - oli-obk:define_opaque_types8, r=co…
Browse files Browse the repository at this point in the history
…mpiler-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`
  • Loading branch information
matthiaskrgr authored Apr 16, 2024
2 parents 3ded9ef + e03926c commit 8e85da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_hir_typeck/src/method/probe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e85da4

Please sign in to comment.