@@ -2487,7 +2487,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LayoutError<'tcx> {
24872487 }
24882488}
24892489
2490- pub trait FnTypeExt < ' tcx , C >
2490+ pub trait FnAbiExt < ' tcx , C >
24912491where
24922492 C : LayoutOf < Ty = Ty < ' tcx > , TyLayout = TyLayout < ' tcx > >
24932493 + HasDataLayout
@@ -2507,7 +2507,7 @@ where
25072507 fn adjust_for_abi ( & mut self , cx : & C , abi : SpecAbi ) ;
25082508}
25092509
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 > >
25112511where
25122512 C : LayoutOf < Ty = Ty < ' tcx > , TyLayout = TyLayout < ' tcx > >
25132513 + HasDataLayout
@@ -2528,7 +2528,7 @@ where
25282528 }
25292529
25302530 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| {
25322532 let mut layout = cx. layout_of ( ty) ;
25332533 // Don't pass the vtable, it's not an argument of the virtual fn.
25342534 // Instead, pass just the data pointer, but give it the type `*const/mut dyn Trait`
0 commit comments