Skip to content

Commit

Permalink
Make sure there are no registered constraints from creating universal…
Browse files Browse the repository at this point in the history
… region vids
  • Loading branch information
compiler-errors committed Dec 27, 2024
1 parent d6c5a6b commit 85aad52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/rustc_borrowck/src/type_check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 85aad52

Please sign in to comment.