mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Change a diagnostics-path-only DefineOpaqueTypes
to Yes
.
This commit is contained in:
parent
63f70b3d10
commit
e03926c143
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user