Skip to content

Commit 53de808

Browse files
authored
Unrolled build for rust-lang#124017
Rollup merge of rust-lang#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``
2 parents 1dea922 + e03926c commit 53de808

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_hir_typeck/src/method

1 file changed

+1
-1
lines changed

compiler/rustc_hir_typeck/src/method/probe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ impl<'a, 'tcx> ProbeContext<'a, 'tcx> {
16961696
if let ProbeResult::Match = result
16971697
&& self
16981698
.at(&ObligationCause::dummy(), self.param_env)
1699-
.sup(DefineOpaqueTypes::No, return_ty, xform_ret_ty)
1699+
.sup(DefineOpaqueTypes::Yes, return_ty, xform_ret_ty)
17001700
.is_err()
17011701
{
17021702
result = ProbeResult::BadReturnType;

0 commit comments

Comments
 (0)