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 c07a6a9 commit 1727c00Copy full SHA for 1727c00
compiler/rustc_infer/src/infer/mod.rs
@@ -1469,7 +1469,12 @@ impl<'tcx> InferCtxt<'tcx> {
1469
* except during the writeback phase.
1470
*/
1471
1472
- resolve::fully_resolve(self, value)
+ let value = resolve::fully_resolve(self, value);
1473
+ assert!(
1474
+ value.as_ref().map_or(true, |value| !value.needs_infer()),
1475
+ "`{value:?}` is not fully resolved"
1476
+ );
1477
+ value
1478
}
1479
1480
pub fn replace_bound_vars_with_fresh_vars<T>(
0 commit comments