1
Fork 0

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

@ -318,7 +318,7 @@ impl<'tcx> InferCtxtExt<'tcx> for InferCtxt<'tcx> {
// This is still required for many(half of the tests in ui/type-alias-impl-trait)
// tests to pass
let _ = infcx.inner.borrow_mut().opaque_type_storage.take_opaque_types();
let _ = infcx.take_opaque_types();
if errors.is_empty() {
definition_ty

View file

@ -208,7 +208,7 @@ pub(crate) fn type_check<'mir, 'tcx>(
);
translate_outlives_facts(&mut checker);
let opaque_type_values = infcx.inner.borrow_mut().opaque_type_storage.take_opaque_types();
let opaque_type_values = infcx.take_opaque_types();
let opaque_type_values = opaque_type_values
.into_iter()