@@ -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
@@ -389,7 +389,7 @@ pub(crate) mod rustc {
389389 tag : Option < ( ScalarInt , VariantIdx , TagEncoding < VariantIdx > ) > ,
390390 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
391391 total_size : Size ,
392- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
392+ cx : LayoutCx < ' tcx > ,
393393 ) -> Result < Self , Err > {
394394 // This constructor does not support non-`FieldsShape::Arbitrary`
395395 // layouts.
@@ -470,7 +470,7 @@ pub(crate) mod rustc {
470470 fn from_union (
471471 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
472472 def : AdtDef < ' tcx > ,
473- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
473+ cx : LayoutCx < ' tcx > ,
474474 ) -> Result < Self , Err > {
475475 assert ! ( def. is_union( ) ) ;
476476
@@ -500,7 +500,7 @@ pub(crate) mod rustc {
500500 }
501501
502502 fn ty_field < ' tcx > (
503- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
503+ cx : LayoutCx < ' tcx > ,
504504 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
505505 i : FieldIdx ,
506506 ) -> Ty < ' tcx > {
@@ -527,7 +527,7 @@ pub(crate) mod rustc {
527527 }
528528
529529 fn ty_variant < ' tcx > (
530- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
530+ cx : LayoutCx < ' tcx > ,
531531 ( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
532532 i : VariantIdx ,
533533 ) -> Layout < ' tcx > {
0 commit comments