@@ -71,7 +71,7 @@ fn clif_type_from_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option<types::Typ
7171 } ,
7272 ty:: FnPtr ( ..) => pointer_ty ( tcx) ,
7373 ty:: RawPtr ( pointee_ty, _) | ty:: Ref ( _, pointee_ty, _) => {
74- if tcx. type_has_metadata ( * pointee_ty, ty:: TypingEnv :: fully_monomorphized ( ) ) {
74+ if tcx. type_has_metadata ( * pointee_ty, ty:: TypingEnv :: fully_monomorphized ( tcx ) ) {
7575 return None ;
7676 } else {
7777 pointer_ty ( tcx)
@@ -91,7 +91,7 @@ fn clif_pair_type_from_ty<'tcx>(
9191 ( clif_type_from_ty ( tcx, types[ 0 ] ) ?, clif_type_from_ty ( tcx, types[ 1 ] ) ?)
9292 }
9393 ty:: RawPtr ( pointee_ty, _) | ty:: Ref ( _, pointee_ty, _) => {
94- if tcx. type_has_metadata ( * pointee_ty, ty:: TypingEnv :: fully_monomorphized ( ) ) {
94+ if tcx. type_has_metadata ( * pointee_ty, ty:: TypingEnv :: fully_monomorphized ( tcx ) ) {
9595 ( pointer_ty ( tcx) , pointer_ty ( tcx) )
9696 } else {
9797 return None ;
@@ -327,7 +327,7 @@ impl<'tcx> rustc_abi::HasDataLayout for FunctionCx<'_, '_, 'tcx> {
327327
328328impl < ' tcx > layout:: HasTypingEnv < ' tcx > for FunctionCx < ' _ , ' _ , ' tcx > {
329329 fn typing_env ( & self ) -> ty:: TypingEnv < ' tcx > {
330- ty:: TypingEnv :: fully_monomorphized ( )
330+ ty:: TypingEnv :: fully_monomorphized ( self . tcx )
331331 }
332332}
333333
@@ -344,7 +344,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
344344 {
345345 self . instance . instantiate_mir_and_normalize_erasing_regions (
346346 self . tcx ,
347- ty:: TypingEnv :: fully_monomorphized ( ) ,
347+ ty:: TypingEnv :: fully_monomorphized ( self . tcx ) ,
348348 ty:: EarlyBinder :: bind ( value) ,
349349 )
350350 }
@@ -490,7 +490,7 @@ impl<'tcx> rustc_abi::HasDataLayout for FullyMonomorphizedLayoutCx<'tcx> {
490490
491491impl < ' tcx > layout:: HasTypingEnv < ' tcx > for FullyMonomorphizedLayoutCx < ' tcx > {
492492 fn typing_env ( & self ) -> ty:: TypingEnv < ' tcx > {
493- ty:: TypingEnv :: fully_monomorphized ( )
493+ ty:: TypingEnv :: fully_monomorphized ( self . 0 )
494494 }
495495}
496496
0 commit comments