@@ -6,16 +6,17 @@ use std::borrow::{Borrow, Cow};
66use std:: fmt:: Debug ;
77use std:: hash:: Hash ;
88
9- use rustc_abi:: { Align , ExternAbi , Size } ;
9+ use rustc_abi:: { Align , Size } ;
1010use rustc_apfloat:: { Float , FloatConvert } ;
1111use rustc_ast:: { InlineAsmOptions , InlineAsmTemplatePiece } ;
1212use rustc_middle:: query:: TyCtxtAt ;
13- use rustc_middle :: ty :: Ty ;
13+
1414use rustc_middle:: ty:: layout:: TyAndLayout ;
1515use rustc_middle:: { mir, ty} ;
1616use rustc_span:: Span ;
1717use rustc_span:: def_id:: DefId ;
1818use rustc_target:: callconv:: FnAbi ;
19+ use rustc_middle:: ty:: Ty ;
1920
2021use super :: {
2122 AllocBytes , AllocId , AllocKind , AllocRange , Allocation , CTFE_ALLOC_SALT , ConstAllocation ,
@@ -202,8 +203,7 @@ pub trait Machine<'tcx>: Sized {
202203 fn find_mir_or_eval_fn (
203204 ecx : & mut InterpCx < ' tcx , Self > ,
204205 instance : ty:: Instance < ' tcx > ,
205- abi : ExternAbi ,
206- _fnabi : & FnAbi < ' tcx , Ty < ' tcx > > ,
206+ abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
207207 args : & [ FnArg < ' tcx , Self :: Provenance > ] ,
208208 destination : & MPlaceTy < ' tcx , Self :: Provenance > ,
209209 target : Option < mir:: BasicBlock > ,
@@ -215,7 +215,7 @@ pub trait Machine<'tcx>: Sized {
215215 fn call_extra_fn (
216216 ecx : & mut InterpCx < ' tcx , Self > ,
217217 fn_val : Self :: ExtraFnVal ,
218- abi : ExternAbi ,
218+ abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
219219 args : & [ FnArg < ' tcx , Self :: Provenance > ] ,
220220 destination : & MPlaceTy < ' tcx , Self :: Provenance > ,
221221 target : Option < mir:: BasicBlock > ,
@@ -654,7 +654,7 @@ pub macro compile_time_machine(<$tcx: lifetime>) {
654654 fn call_extra_fn (
655655 _ecx : & mut InterpCx < $tcx, Self > ,
656656 fn_val : !,
657- _abi : ExternAbi ,
657+ _abi : & FnAbi < $tcx , Ty < $tcx > > ,
658658 _args : & [ FnArg < $tcx> ] ,
659659 _destination : & MPlaceTy < $tcx, Self :: Provenance > ,
660660 _target : Option < mir:: BasicBlock > ,
0 commit comments