Skip to content

Commit

Permalink
require Reveal::All in normalize_erasing_regions
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Oct 9, 2020
1 parent 6b8b396 commit 19e7095
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/ty/normalize_erasing_regions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ impl<'tcx> TyCtxt<'tcx> {
value,
param_env,
);
debug_assert_eq!(param_env.reveal(), ty::Reveal::All);

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

0 comments on commit 19e7095

Please sign in to comment.