Use DefiningOpaqueTypes::Yes, as the InferCtxt we use has no opaque types it may define

This commit is contained in:
Oli Scherer 2024-04-22 13:11:29 +00:00
parent 07d0d7ce3f
commit 6bff7f45f1

View file

@ -789,7 +789,7 @@ fn evaluate_nested_obligations(
match (evaluate(c1), evaluate(c2)) {
(Ok(c1), Ok(c2)) => {
match selcx.infcx.at(&obligation.cause, obligation.param_env).eq(DefineOpaqueTypes::No,c1, c2)
match selcx.infcx.at(&obligation.cause, obligation.param_env).eq(DefineOpaqueTypes::Yes,c1, c2)
{
Ok(_) => (),
Err(_) => return false,