1
Fork 0

Double check that hidden types match the expected hidden type

This commit is contained in:
Oli Scherer 2023-07-20 09:36:02 +00:00
parent c67cb3e577
commit 44e21503a8
8 changed files with 224 additions and 12 deletions

View file

@ -271,6 +271,7 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
// assertions against dropping an `InferCtxt` without taking opaques.
// FIXME: Once we remove support for the old impl we can remove this.
if input.anchor != DefiningAnchor::Error {
// This seems ok, but fragile.
let _ = infcx.take_opaque_types();
}