Skip to content

Commit

Permalink
Rollup merge of rust-lang#123969 - oli-obk:define_opaque_types6, r=co…
Browse files Browse the repository at this point in the history
…mpiler-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`
  • Loading branch information
matthiaskrgr authored Apr 16, 2024
2 parents 4f05fbc + 67334df commit c709c51
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 c709c51

Please sign in to comment.