The new solver ignores DefineOpaqueTypes, so switch it to Yes

We assert that we are in the new solver in the line above
This commit is contained in:
Oli Scherer 2024-04-15 16:18:32 +00:00
parent 85b884b058
commit 67334df1ea

View File

@ -282,7 +282,7 @@ pub fn eq_structurally_relating_aliases<T>(self, a: T, b: T) -> InferResult<'tcx
{ {
let Trace { at, trace } = self; let Trace { at, trace } = self;
debug_assert!(at.infcx.next_trait_solver()); 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 fields
.equate(StructurallyRelateAliases::Yes) .equate(StructurallyRelateAliases::Yes)
.relate(a, b) .relate(a, b)