Skip to content

Commit

Permalink
Use DefiningOpaqueTypes::Yes, as the InferCtxt we use has no opaq…
Browse files Browse the repository at this point in the history
…ue types it may define
  • Loading branch information
oli-obk committed Apr 22, 2024
1 parent 07d0d7c commit 6bff7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_trait_selection/src/traits/auto_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {

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,
Expand Down

0 comments on commit 6bff7f4

Please sign in to comment.