File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -270,8 +270,8 @@ impl<'tcx> NonCopyConst<'tcx> {
270
270
instance,
271
271
promoted : None ,
272
272
} ;
273
- let param_env = cx . tcx . param_env ( def_id ) . with_reveal_all_normalized ( cx. tcx ) ;
274
- let result = cx. tcx . const_eval_global_id_for_typeck ( param_env , cid, DUMMY_SP ) ;
273
+ let typing_env = ty :: TypingEnv :: post_analysis ( cx. tcx , def_id ) ;
274
+ let result = cx. tcx . const_eval_global_id_for_typeck ( typing_env , cid, DUMMY_SP ) ;
275
275
Self :: is_value_unfrozen_raw ( cx, result, ty)
276
276
}
277
277
@@ -294,7 +294,7 @@ impl<'tcx> NonCopyConst<'tcx> {
294
294
instance,
295
295
promoted : None ,
296
296
} ;
297
- tcx. const_eval_global_id_for_typeck ( typing_env. param_env , cid, span)
297
+ tcx. const_eval_global_id_for_typeck ( typing_env, cid, span)
298
298
} ,
299
299
Ok ( None ) => Err ( ErrorHandled :: TooGeneric ( span) ) ,
300
300
Err ( err) => Err ( ErrorHandled :: Reported ( err. into ( ) , span) ) ,
You can’t perform that action at this time.
0 commit comments