@@ -103,11 +103,11 @@ fn clif_pair_type_from_ty<'tcx>(
103103
104104/// Is a pointer to this type a wide ptr?
105105pub ( crate ) fn has_ptr_meta < ' tcx > ( tcx : TyCtxt < ' tcx > , ty : Ty < ' tcx > ) -> bool {
106- if ty. is_sized ( tcx, ParamEnv :: reveal_all ( ) ) {
106+ if ty. is_sized ( tcx, ty :: ParamEnv :: reveal_all ( ) ) {
107107 return false ;
108108 }
109109
110- let tail = tcx. struct_tail_for_codegen ( ty, ParamEnv :: reveal_all ( ) ) ;
110+ let tail = tcx. struct_tail_for_codegen ( ty, ty :: TypingEnv :: fully_monomorphized ( ) ) ;
111111 match tail. kind ( ) {
112112 ty:: Foreign ( ..) => false ,
113113 ty:: Str | ty:: Slice ( ..) | ty:: Dynamic ( ..) => true ,
@@ -339,9 +339,9 @@ impl<'tcx> rustc_target::abi::HasDataLayout for FunctionCx<'_, '_, 'tcx> {
339339 }
340340}
341341
342- impl < ' tcx > layout:: HasParamEnv < ' tcx > for FunctionCx < ' _ , ' _ , ' tcx > {
343- fn param_env ( & self ) -> ParamEnv < ' tcx > {
344- ParamEnv :: reveal_all ( )
342+ impl < ' tcx > layout:: HasTypingEnv < ' tcx > for FunctionCx < ' _ , ' _ , ' tcx > {
343+ fn typing_env ( & self ) -> ty :: TypingEnv < ' tcx > {
344+ ty :: TypingEnv :: fully_monomorphized ( )
345345 }
346346}
347347
@@ -358,7 +358,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
358358 {
359359 self . instance . instantiate_mir_and_normalize_erasing_regions (
360360 self . tcx ,
361- ty:: ParamEnv :: reveal_all ( ) ,
361+ ty:: TypingEnv :: fully_monomorphized ( ) ,
362362 ty:: EarlyBinder :: bind ( value) ,
363363 )
364364 }
@@ -497,9 +497,9 @@ impl<'tcx> rustc_target::abi::HasDataLayout for RevealAllLayoutCx<'tcx> {
497497 }
498498}
499499
500- impl < ' tcx > layout:: HasParamEnv < ' tcx > for RevealAllLayoutCx < ' tcx > {
501- fn param_env ( & self ) -> ParamEnv < ' tcx > {
502- ParamEnv :: reveal_all ( )
500+ impl < ' tcx > layout:: HasTypingEnv < ' tcx > for RevealAllLayoutCx < ' tcx > {
501+ fn typing_env ( & self ) -> ty :: TypingEnv < ' tcx > {
502+ ty :: TypingEnv :: fully_monomorphized ( )
503503 }
504504}
505505
0 commit comments