@@ -204,7 +204,7 @@ pub(crate) mod rustc {
204204 }
205205
206206 impl < ' tcx > Tree < Def < ' tcx > , Ref < ' tcx > > {
207- pub ( crate ) fn from_ty ( ty : Ty < ' tcx > , cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ) -> Result < Self , Err > {
207+ pub ( crate ) fn from_ty ( ty : Ty < ' tcx > , cx : LayoutCx < ' tcx > ) -> Result < Self , Err > {
208208 use rustc_target:: abi:: HasDataLayout ;
209209 let layout = layout_of ( cx, ty) ?;
210210
@@ -274,7 +274,7 @@ pub(crate) mod rustc {
274274 fn from_tuple (
275275 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
276276 members : & ' tcx List < Ty < ' tcx > > ,
277- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
277+ cx : LayoutCx < ' tcx > ,
278278 ) -> Result < Self , Err > {
279279 match & layout. fields {
280280 FieldsShape :: Primitive => {
@@ -299,7 +299,7 @@ pub(crate) mod rustc {
299299 fn from_struct (
300300 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
301301 def : AdtDef < ' tcx > ,
302- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
302+ cx : LayoutCx < ' tcx > ,
303303 ) -> Result < Self , Err > {
304304 assert ! ( def. is_struct( ) ) ;
305305 let def = Def :: Adt ( def) ;
@@ -314,7 +314,7 @@ pub(crate) mod rustc {
314314 fn from_enum (
315315 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
316316 def : AdtDef < ' tcx > ,
317- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
317+ cx : LayoutCx < ' tcx > ,
318318 ) -> Result < Self , Err > {
319319 assert ! ( def. is_enum( ) ) ;
320320
@@ -383,7 +383,7 @@ pub(crate) mod rustc {
383383 tag : Option < ScalarInt > ,
384384 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
385385 total_size : Size ,
386- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
386+ cx : LayoutCx < ' tcx > ,
387387 ) -> Result < Self , Err > {
388388 // This constructor does not support non-`FieldsShape::Arbitrary`
389389 // layouts.
@@ -455,7 +455,7 @@ pub(crate) mod rustc {
455455 fn from_union (
456456 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
457457 def : AdtDef < ' tcx > ,
458- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
458+ cx : LayoutCx < ' tcx > ,
459459 ) -> Result < Self , Err > {
460460 assert ! ( def. is_union( ) ) ;
461461
@@ -485,7 +485,7 @@ pub(crate) mod rustc {
485485 }
486486
487487 fn ty_field < ' tcx > (
488- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
488+ cx : LayoutCx < ' tcx > ,
489489 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
490490 i : FieldIdx ,
491491 ) -> Ty < ' tcx > {
@@ -512,7 +512,7 @@ pub(crate) mod rustc {
512512 }
513513
514514 fn ty_variant < ' tcx > (
515- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
515+ cx : LayoutCx < ' tcx > ,
516516 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
517517 i : VariantIdx ,
518518 ) -> Layout < ' tcx > {
0 commit comments