Skip to content

Commit 6b34825

Browse files
committed
Cleanup opaque type storage after checking impossible predicates.
1 parent 8492460 commit 6b34825

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+3
-0
lines changed

compiler/rustc_trait_selection/src/traits/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,9 @@ pub fn impossible_predicates<'tcx>(
448448

449449
let errors = fulfill_cx.select_all_or_error(&infcx);
450450

451+
// Clean up after ourselves
452+
let _ = infcx.inner.borrow_mut().opaque_type_storage.take_opaque_types();
453+
451454
!errors.is_empty()
452455
});
453456
debug!("impossible_predicates = {:?}", result);

0 commit comments

Comments
 (0)