Skip to content

Commit 6bff7f4

Browse files
committed
Use DefiningOpaqueTypes::Yes, as the InferCtxt we use has no opaque types it may define
1 parent 07d0d7c commit 6bff7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/auto_trait.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
789789

790790
match (evaluate(c1), evaluate(c2)) {
791791
(Ok(c1), Ok(c2)) => {
792-
match selcx.infcx.at(&obligation.cause, obligation.param_env).eq(DefineOpaqueTypes::No,c1, c2)
792+
match selcx.infcx.at(&obligation.cause, obligation.param_env).eq(DefineOpaqueTypes::Yes,c1, c2)
793793
{
794794
Ok(_) => (),
795795
Err(_) => return false,

0 commit comments

Comments
 (0)