Skip to content

Commit e03926c

Browse files
committed
Change a diagnostics-path-only DefineOpaqueTypes to Yes.
1 parent 63f70b3 commit e03926c

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)