Assert defining anchor is set in take_opaque_types

This commit is contained in:
Michael Goulet
2023-01-09 18:14:28 +00:00
parent 5132e13f13
commit f769d34291
10 changed files with 13 additions and 19 deletions

View File

@@ -82,7 +82,7 @@ pub fn codegen_select_candidate<'tcx>(
// Opaque types may have gotten their hidden types constrained, but we can ignore them safely
// as they will get constrained elsewhere, too.
// (ouz-a) This is required for `type-alias-impl-trait/assoc-projection-ice.rs` to pass
let _ = infcx.inner.borrow_mut().opaque_type_storage.take_opaque_types();
let _ = infcx.take_opaque_types();
Ok(&*tcx.arena.alloc(impl_source))
}