@@ -2487,7 +2487,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LayoutError<'tcx> {
2487
2487
}
2488
2488
}
2489
2489
2490
- pub trait FnTypeExt < ' tcx , C >
2490
+ pub trait FnAbiExt < ' tcx , C >
2491
2491
where
2492
2492
C : LayoutOf < Ty = Ty < ' tcx > , TyLayout = TyLayout < ' tcx > >
2493
2493
+ HasDataLayout
@@ -2507,7 +2507,7 @@ where
2507
2507
fn adjust_for_abi ( & mut self , cx : & C , abi : SpecAbi ) ;
2508
2508
}
2509
2509
2510
- impl < ' tcx , C > FnTypeExt < ' tcx , C > for call:: FnAbi < ' tcx , Ty < ' tcx > >
2510
+ impl < ' tcx , C > FnAbiExt < ' tcx , C > for call:: FnAbi < ' tcx , Ty < ' tcx > >
2511
2511
where
2512
2512
C : LayoutOf < Ty = Ty < ' tcx > , TyLayout = TyLayout < ' tcx > >
2513
2513
+ HasDataLayout
@@ -2528,7 +2528,7 @@ where
2528
2528
}
2529
2529
2530
2530
fn new_vtable ( cx : & C , sig : ty:: FnSig < ' tcx > , extra_args : & [ Ty < ' tcx > ] ) -> Self {
2531
- FnTypeExt :: new_internal ( cx, sig, extra_args, |ty, arg_idx| {
2531
+ FnAbiExt :: new_internal ( cx, sig, extra_args, |ty, arg_idx| {
2532
2532
let mut layout = cx. layout_of ( ty) ;
2533
2533
// Don't pass the vtable, it's not an argument of the virtual fn.
2534
2534
// Instead, pass just the data pointer, but give it the type `*const/mut dyn Trait`
0 commit comments