We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c5a6b commit 85aad52Copy full SHA for 85aad52
compiler/rustc_borrowck/src/type_check/mod.rs
@@ -140,6 +140,12 @@ pub(crate) fn type_check<'a, 'tcx>(
140
&mut constraints,
141
);
142
143
+ let pre_obligations = infcx.take_registered_region_obligations();
144
+ assert!(
145
+ pre_obligations.is_empty(),
146
+ "there should be no incoming region obligations = {pre_obligations:#?}",
147
+ );
148
+
149
debug!(?normalized_inputs_and_output);
150
151
let mut typeck = TypeChecker {
0 commit comments