File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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> {
270270 instance,
271271 promoted : None ,
272272 } ;
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 ) ;
275275 Self :: is_value_unfrozen_raw ( cx, result, ty)
276276 }
277277
@@ -294,7 +294,7 @@ impl<'tcx> NonCopyConst<'tcx> {
294294 instance,
295295 promoted : None ,
296296 } ;
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)
298298 } ,
299299 Ok ( None ) => Err ( ErrorHandled :: TooGeneric ( span) ) ,
300300 Err ( err) => Err ( ErrorHandled :: Reported ( err. into ( ) , span) ) ,
You can’t perform that action at this time.
0 commit comments