@@ -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
@@ -383,7 +383,7 @@ pub(crate) mod rustc {
383
383
tag : Option < ScalarInt > ,
384
384
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
385
385
total_size : Size ,
386
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
386
+ cx : LayoutCx < ' tcx > ,
387
387
) -> Result < Self , Err > {
388
388
// This constructor does not support non-`FieldsShape::Arbitrary`
389
389
// layouts.
@@ -455,7 +455,7 @@ pub(crate) mod rustc {
455
455
fn from_union (
456
456
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
457
457
def : AdtDef < ' tcx > ,
458
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
458
+ cx : LayoutCx < ' tcx > ,
459
459
) -> Result < Self , Err > {
460
460
assert ! ( def. is_union( ) ) ;
461
461
@@ -485,7 +485,7 @@ pub(crate) mod rustc {
485
485
}
486
486
487
487
fn ty_field < ' tcx > (
488
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
488
+ cx : LayoutCx < ' tcx > ,
489
489
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
490
490
i : FieldIdx ,
491
491
) -> Ty < ' tcx > {
@@ -512,7 +512,7 @@ pub(crate) mod rustc {
512
512
}
513
513
514
514
fn ty_variant < ' tcx > (
515
- cx : LayoutCx < ' tcx , TyCtxt < ' tcx > > ,
515
+ cx : LayoutCx < ' tcx > ,
516
516
( ty, layout) : ( Ty < ' tcx > , Layout < ' tcx > ) ,
517
517
i : VariantIdx ,
518
518
) -> Layout < ' tcx > {
0 commit comments