File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_middle/src/mir/interpret Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl<'tcx> TyCtxt<'tcx> {
2323 let args = GenericArgs :: identity_for_item ( self , def_id) ;
2424 let instance = ty:: Instance :: new ( def_id, args) ;
2525 let cid = GlobalId { instance, promoted : None } ;
26- let param_env = self . param_env ( def_id) . with_reveal_all_normalized ( self ) ;
26+ let param_env = self . param_env_reveal_all_normalized ( def_id) ;
2727 self . const_eval_global_id ( param_env, cid, None )
2828 }
2929 /// Resolves and evaluates a constant.
@@ -188,7 +188,7 @@ impl<'tcx> TyCtxtEnsure<'tcx> {
188188 let args = GenericArgs :: identity_for_item ( self . tcx , def_id) ;
189189 let instance = ty:: Instance :: new ( def_id, args) ;
190190 let cid = GlobalId { instance, promoted : None } ;
191- let param_env = self . tcx . param_env ( def_id) . with_reveal_all_normalized ( self . tcx ) ;
191+ let param_env = self . tcx . param_env_reveal_all_normalized ( def_id) ;
192192 // Const-eval shouldn't depend on lifetimes at all, so we can erase them, which should
193193 // improve caching of queries.
194194 let inputs = self . tcx . erase_regions ( param_env. and ( cid) ) ;
You can’t perform that action at this time.
0 commit comments