1
Fork 0

Use param_env_reveal_all_normalized in MIR opts.

This commit is contained in:
Camille GILLOT 2023-04-15 08:34:05 +00:00
parent 7efcf67a3b
commit 4fe51365d7
7 changed files with 10 additions and 8 deletions

View file

@ -323,7 +323,7 @@ impl<'tcx> std::fmt::Debug for ScalarTy<'tcx> {
impl<'a, 'tcx> ConstAnalysis<'a, 'tcx> {
pub fn new(tcx: TyCtxt<'tcx>, body: &'a Body<'tcx>, map: Map) -> Self {
let param_env = tcx.param_env(body.source.def_id());
let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id());
Self {
map,
tcx,