1
Fork 0

Make sure there are no registered constraints from creating universal region vids

This commit is contained in:
Michael Goulet 2024-12-27 17:58:16 +00:00
parent d6c5a6bd3a
commit 85aad52ce8

View file

@ -140,6 +140,12 @@ pub(crate) fn type_check<'a, 'tcx>(
&mut constraints,
);
let pre_obligations = infcx.take_registered_region_obligations();
assert!(
pre_obligations.is_empty(),
"there should be no incoming region obligations = {pre_obligations:#?}",
);
debug!(?normalized_inputs_and_output);
let mut typeck = TypeChecker {