@@ -6,7 +6,7 @@ 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 ;
@@ -15,6 +15,7 @@ use rustc_middle::ty::layout::TyAndLayout;
1515use rustc_middle:: { mir, ty} ;
1616use rustc_span:: Span ;
1717use rustc_span:: def_id:: DefId ;
18+ use rustc_target:: callconv:: FnAbi ;
1819
1920use super :: {
2021 AllocBytes , AllocId , AllocKind , AllocRange , Allocation , CTFE_ALLOC_SALT , ConstAllocation ,
@@ -201,7 +202,7 @@ pub trait Machine<'tcx>: Sized {
201202 fn find_mir_or_eval_fn (
202203 ecx : & mut InterpCx < ' tcx , Self > ,
203204 instance : ty:: Instance < ' tcx > ,
204- abi : ExternAbi ,
205+ abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
205206 args : & [ FnArg < ' tcx , Self :: Provenance > ] ,
206207 destination : & MPlaceTy < ' tcx , Self :: Provenance > ,
207208 target : Option < mir:: BasicBlock > ,
@@ -213,7 +214,7 @@ pub trait Machine<'tcx>: Sized {
213214 fn call_extra_fn (
214215 ecx : & mut InterpCx < ' tcx , Self > ,
215216 fn_val : Self :: ExtraFnVal ,
216- abi : ExternAbi ,
217+ abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
217218 args : & [ FnArg < ' tcx , Self :: Provenance > ] ,
218219 destination : & MPlaceTy < ' tcx , Self :: Provenance > ,
219220 target : Option < mir:: BasicBlock > ,
@@ -656,7 +657,7 @@ pub macro compile_time_machine(<$tcx: lifetime>) {
656657 fn call_extra_fn (
657658 _ecx : & mut InterpCx < $tcx, Self > ,
658659 fn_val : !,
659- _abi : ExternAbi ,
660+ _abi : & FnAbi < $tcx , Ty < $tcx > > ,
660661 _args : & [ FnArg < $tcx> ] ,
661662 _destination : & MPlaceTy < $tcx, Self :: Provenance > ,
662663 _target : Option < mir:: BasicBlock > ,
0 commit comments