Skip to content

Commit

Permalink
The new solver ignores DefineOpaqueTypes, so switch it to Yes
Browse files Browse the repository at this point in the history
We assert that we are in the new solver in the line above
  • Loading branch information
oli-obk committed Apr 15, 2024
1 parent 85b884b commit 67334df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_infer/src/infer/at.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
{
let Trace { at, trace } = self;
debug_assert!(at.infcx.next_trait_solver());
let mut fields = at.infcx.combine_fields(trace, at.param_env, DefineOpaqueTypes::No);
let mut fields = at.infcx.combine_fields(trace, at.param_env, DefineOpaqueTypes::Yes);
fields
.equate(StructurallyRelateAliases::Yes)
.relate(a, b)
Expand Down

0 comments on commit 67334df

Please sign in to comment.