File tree 1 file changed +2
-2
lines changed
compiler/rustc_middle/src/mir/interpret
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> {
23
23
let args = GenericArgs :: identity_for_item ( self , def_id) ;
24
24
let instance = ty:: Instance :: new ( def_id, args) ;
25
25
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) ;
27
27
self . const_eval_global_id ( param_env, cid, None )
28
28
}
29
29
/// Resolves and evaluates a constant.
@@ -188,7 +188,7 @@ impl<'tcx> TyCtxtEnsure<'tcx> {
188
188
let args = GenericArgs :: identity_for_item ( self . tcx , def_id) ;
189
189
let instance = ty:: Instance :: new ( def_id, args) ;
190
190
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) ;
192
192
// Const-eval shouldn't depend on lifetimes at all, so we can erase them, which should
193
193
// improve caching of queries.
194
194
let inputs = self . tcx . erase_regions ( param_env. and ( cid) ) ;
You can’t perform that action at this time.
0 commit comments