Skip to content

Commit

Permalink
Change a diagnostics-path-only DefineOpaqueTypes to Yes.
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 16, 2024
1 parent 63f70b3 commit e03926c
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 e03926c

Please sign in to comment.