@@ -40,6 +40,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
40
40
& mut self ,
41
41
link_name : Symbol ,
42
42
abi : ExternAbi ,
43
+ _fnabi : & FnAbi < ' tcx , Ty < ' tcx > > ,
43
44
args : & [ OpTy < ' tcx > ] ,
44
45
dest : & MPlaceTy < ' tcx > ,
45
46
ret : Option < mir:: BasicBlock > ,
@@ -67,7 +68,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
67
68
}
68
69
69
70
// The rest either implements the logic, or falls back to `lookup_exported_symbol`.
70
- match this. emulate_foreign_item_inner ( link_name, abi, args, dest) ? {
71
+ match this. emulate_foreign_item_inner ( link_name, abi, _fnabi , args, dest) ? {
71
72
EmulateItemResult :: NeedsReturn => {
72
73
trace ! ( "{:?}" , this. dump_place( & dest. clone( ) . into( ) ) ) ;
73
74
this. return_to_block ( ret) ?;
@@ -219,6 +220,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
219
220
& mut self ,
220
221
link_name : Symbol ,
221
222
abi : ExternAbi ,
223
+ _fnabi : & FnAbi < ' tcx , Ty < ' tcx > > ,
222
224
args : & [ OpTy < ' tcx > ] ,
223
225
dest : & MPlaceTy < ' tcx > ,
224
226
) -> InterpResult < ' tcx , EmulateItemResult > {
@@ -277,7 +279,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
277
279
match link_name. as_str ( ) {
278
280
// Miri-specific extern functions
279
281
"miri_start_unwind" => {
280
- let [ payload] = this. check_shim ( abi, ExternAbi :: Rust , link_name, args) ?;
282
+ let [ payload] = this. check_shim ( abi, _fnabi , ExternAbi :: Rust , link_name, args) ?;
281
283
this. handle_miri_start_unwind ( payload) ?;
282
284
return interp_ok ( EmulateItemResult :: NeedsUnwind ) ;
283
285
}
@@ -286,7 +288,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
286
288
this. run_provenance_gc ( ) ;
287
289
}
288
290
"miri_get_alloc_id" => {
289
- let [ ptr] = this. check_shim ( abi, ExternAbi :: Rust , link_name, args) ?;
291
+ let [ ptr] = this. check_shim ( abi, _fnabi , ExternAbi :: Rust , link_name, args) ?;
290
292
let ptr = this. read_pointer ( ptr) ?;
291
293
let ( alloc_id, _, _) = this. ptr_get_alloc_id ( ptr, 0 ) . map_err_kind ( |_e| {
292
294
err_machine_stop ! ( TerminationInfo :: Abort ( format!(
@@ -296,7 +298,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
296
298
this. write_scalar ( Scalar :: from_u64 ( alloc_id. 0 . get ( ) ) , dest) ?;
297
299
}
298
300
"miri_print_borrow_state" => {
299
- let [ id, show_unnamed] = this. check_shim ( abi, ExternAbi :: Rust , link_name, args) ?;
301
+ let [ id, show_unnamed] = this. check_shim ( abi, _fnabi , ExternAbi :: Rust , link_name, args) ?;
300
302
let id = this. read_scalar ( id) ?. to_u64 ( ) ?;
301
303
let show_unnamed = this. read_scalar ( show_unnamed) ?. to_bool ( ) ?;
302
304
if let Some ( id) = std:: num:: NonZero :: new ( id) . map ( AllocId )
0 commit comments