Make sure there are no registered constraints from creating universal region vids
This commit is contained in:
parent
d6c5a6bd3a
commit
85aad52ce8
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue