@@ -6,16 +6,17 @@ 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 ;
13
- use rustc_middle :: ty :: Ty ;
13
+
14
14
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
18
use rustc_target:: callconv:: FnAbi ;
19
+ use rustc_middle:: ty:: Ty ;
19
20
20
21
use super :: {
21
22
AllocBytes , AllocId , AllocKind , AllocRange , Allocation , CTFE_ALLOC_SALT , ConstAllocation ,
@@ -202,8 +203,7 @@ pub trait Machine<'tcx>: Sized {
202
203
fn find_mir_or_eval_fn (
203
204
ecx : & mut InterpCx < ' tcx , Self > ,
204
205
instance : ty:: Instance < ' tcx > ,
205
- abi : ExternAbi ,
206
- _fnabi : & FnAbi < ' tcx , Ty < ' tcx > > ,
206
+ abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
207
207
args : & [ FnArg < ' tcx , Self :: Provenance > ] ,
208
208
destination : & MPlaceTy < ' tcx , Self :: Provenance > ,
209
209
target : Option < mir:: BasicBlock > ,
@@ -215,7 +215,7 @@ pub trait Machine<'tcx>: Sized {
215
215
fn call_extra_fn (
216
216
ecx : & mut InterpCx < ' tcx , Self > ,
217
217
fn_val : Self :: ExtraFnVal ,
218
- abi : ExternAbi ,
218
+ abi : & FnAbi < ' tcx , Ty < ' tcx > > ,
219
219
args : & [ FnArg < ' tcx , Self :: Provenance > ] ,
220
220
destination : & MPlaceTy < ' tcx , Self :: Provenance > ,
221
221
target : Option < mir:: BasicBlock > ,
@@ -654,7 +654,7 @@ pub macro compile_time_machine(<$tcx: lifetime>) {
654
654
fn call_extra_fn (
655
655
_ecx : & mut InterpCx < $tcx, Self > ,
656
656
fn_val : !,
657
- _abi : ExternAbi ,
657
+ _abi : & FnAbi < $tcx , Ty < $tcx > > ,
658
658
_args : & [ FnArg < $tcx> ] ,
659
659
_destination : & MPlaceTy < $tcx, Self :: Provenance > ,
660
660
_target : Option < mir:: BasicBlock > ,
0 commit comments