Skip to content

Commit cad7d94

Browse files
authored
Rollup merge of #123969 - oli-obk:define_opaque_types6, r=compiler-errors
The new solver ignores `DefineOpaqueTypes`, so switch it to `Yes` We assert that we are in the new solver in the line above r? ``@compiler-errors``
2 parents 0aa7235 + 67334df commit cad7d94

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_infer/src/infer

1 file changed

+1
-1
lines changed

compiler/rustc_infer/src/infer/at.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl<'a, 'tcx> Trace<'a, 'tcx> {
282282
{
283283
let Trace { at, trace } = self;
284284
debug_assert!(at.infcx.next_trait_solver());
285-
let mut fields = at.infcx.combine_fields(trace, at.param_env, DefineOpaqueTypes::No);
285+
let mut fields = at.infcx.combine_fields(trace, at.param_env, DefineOpaqueTypes::Yes);
286286
fields
287287
.equate(StructurallyRelateAliases::Yes)
288288
.relate(a, b)

0 commit comments

Comments
 (0)