@@ -6,7 +6,7 @@ use std::borrow::{Borrow, Cow};
6
6
use std:: fmt:: Debug ;
7
7
use std:: hash:: Hash ;
8
8
9
- use rustc_abi:: { Align , ExternAbi , Size } ;
9
+ use rustc_abi:: { Align , Size } ;
10
10
use rustc_apfloat:: { Float , FloatConvert } ;
11
11
use rustc_ast:: { InlineAsmOptions , InlineAsmTemplatePiece } ;
12
12
use rustc_middle:: query:: TyCtxtAt ;
@@ -15,6 +15,7 @@ use rustc_middle::ty::layout::TyAndLayout;
15
15
use rustc_middle:: { mir, ty} ;
16
16
use rustc_span:: Span ;
17
17
use rustc_span:: def_id:: DefId ;
18
+ use rustc_target:: callconv:: FnAbi ;
18
19
19
20
use super :: {
20
21
AllocBytes , AllocId , AllocKind , AllocRange , Allocation , CTFE_ALLOC_SALT , ConstAllocation ,
@@ -201,7 +202,7 @@ pub trait Machine<'tcx>: Sized {
201
202
fn find_mir_or_eval_fn (
202
203
ecx : & mut InterpCx < ' tcx , Self > ,
203
204
instance : ty:: Instance < ' tcx > ,
204
- abi : ExternAbi ,
205
+ abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
205
206
args : & [ FnArg < ' tcx , Self :: Provenance > ] ,
206
207
destination : & MPlaceTy < ' tcx , Self :: Provenance > ,
207
208
target : Option < mir:: BasicBlock > ,
@@ -213,7 +214,7 @@ pub trait Machine<'tcx>: Sized {
213
214
fn call_extra_fn (
214
215
ecx : & mut InterpCx < ' tcx , Self > ,
215
216
fn_val : Self :: ExtraFnVal ,
216
- abi : ExternAbi ,
217
+ abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
217
218
args : & [ FnArg < ' tcx , Self :: Provenance > ] ,
218
219
destination : & MPlaceTy < ' tcx , Self :: Provenance > ,
219
220
target : Option < mir:: BasicBlock > ,
@@ -656,7 +657,7 @@ pub macro compile_time_machine(<$tcx: lifetime>) {
656
657
fn call_extra_fn (
657
658
_ecx : & mut InterpCx < $tcx, Self > ,
658
659
fn_val : !,
659
- _abi : ExternAbi ,
660
+ _abi : & FnAbi < $tcx , Ty < $tcx > > ,
660
661
_args : & [ FnArg < $tcx> ] ,
661
662
_destination : & MPlaceTy < $tcx, Self :: Provenance > ,
662
663
_target : Option < mir:: BasicBlock > ,
0 commit comments