Skip to content

Commit 19e7095

Browse files
committed
require Reveal::All in normalize_erasing_regions
1 parent 6b8b396 commit 19e7095

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/ty/normalize_erasing_regions.rs

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ impl<'tcx> TyCtxt<'tcx> {
2727
value,
2828
param_env,
2929
);
30+
debug_assert_eq!(param_env.reveal(), ty::Reveal::All);
3031

3132
// Erase first before we do the real query -- this keeps the
3233
// cache from being too polluted.

0 commit comments

Comments
 (0)