@@ -204,7 +204,7 @@ pub(crate) mod rustc {
204
204
}
205
205
206
206
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 > {
208
208
use rustc_target:: abi:: HasDataLayout ;
209
209
let layout = layout_of ( cx, ty) ?;
210
210
@@ -274,7 +274,7 @@ pub(crate) mod rustc {
274
274
fn from_tuple (
275
275
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
276
276
members : & ' tcx List < Ty < ' tcx > > ,
277
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
277
+ cx : LayoutCx < ' tcx > ,
278
278
) -> Result < Self , Err > {
279
279
match & layout. fields {
280
280
FieldsShape :: Primitive => {
@@ -299,7 +299,7 @@ pub(crate) mod rustc {
299
299
fn from_struct (
300
300
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
301
301
def : AdtDef < ' tcx > ,
302
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
302
+ cx : LayoutCx < ' tcx > ,
303
303
) -> Result < Self , Err > {
304
304
assert ! ( def. is_struct( ) ) ;
305
305
let def = Def :: Adt ( def) ;
@@ -314,7 +314,7 @@ pub(crate) mod rustc {
314
314
fn from_enum (
315
315
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
316
316
def : AdtDef < ' tcx > ,
317
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
317
+ cx : LayoutCx < ' tcx > ,
318
318
) -> Result < Self , Err > {
319
319
assert ! ( def. is_enum( ) ) ;
320
320
@@ -389,7 +389,7 @@ pub(crate) mod rustc {
389
389
tag : Option < ( ScalarInt , VariantIdx , TagEncoding < VariantIdx > ) > ,
390
390
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
391
391
total_size : Size ,
392
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
392
+ cx : LayoutCx < ' tcx > ,
393
393
) -> Result < Self , Err > {
394
394
// This constructor does not support non-`FieldsShape::Arbitrary`
395
395
// layouts.
@@ -470,7 +470,7 @@ pub(crate) mod rustc {
470
470
fn from_union (
471
471
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
472
472
def : AdtDef < ' tcx > ,
473
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
473
+ cx : LayoutCx < ' tcx > ,
474
474
) -> Result < Self , Err > {
475
475
assert ! ( def. is_union( ) ) ;
476
476
@@ -500,7 +500,7 @@ pub(crate) mod rustc {
500
500
}
501
501
502
502
fn ty_field < ' tcx > (
503
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
503
+ cx : LayoutCx < ' tcx > ,
504
504
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
505
505
i : FieldIdx ,
506
506
) -> Ty < ' tcx > {
@@ -527,7 +527,7 @@ pub(crate) mod rustc {
527
527
}
528
528
529
529
fn ty_variant < ' tcx > (
530
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
530
+ cx : LayoutCx < ' tcx > ,
531
531
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
532
532
i : VariantIdx ,
533
533
) -> Layout < ' tcx > {
0 commit comments