Use DefiningOpaqueTypes::Yes
, as the InferCtxt
we use has no opaque types it may define
This commit is contained in:
parent
07d0d7ce3f
commit
6bff7f45f1
1 changed files with 1 additions and 1 deletions
|
@ -789,7 +789,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
||||||
|
|
||||||
match (evaluate(c1), evaluate(c2)) {
|
match (evaluate(c1), evaluate(c2)) {
|
||||||
(Ok(c1), Ok(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(_) => (),
|
Ok(_) => (),
|
||||||
Err(_) => return false,
|
Err(_) => return false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue