Skip to content

Commit

Permalink
Rollup merge of rust-lang#77752 - lcnr:normalize-assert, r=oli-obk
Browse files Browse the repository at this point in the history
require `Reveal::All` in `normalize_erasing_regions`

would have caught a bug in mir inlining, see rust-lang#77568 (comment)
  • Loading branch information
JohnTitor authored Oct 10, 2020
2 parents 5e61a07 + 19e7095 commit 52db1e9
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 52db1e9

Please sign in to comment.