@@ -297,8 +297,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
297
297
Some ( p) => p,
298
298
} ;
299
299
300
- // Second: functions that return.
301
- match this. emulate_foreign_item_by_name ( link_name, abi, args, dest, ret ) ? {
300
+ // Second: functions that return immediately .
301
+ match this. emulate_foreign_item_by_name ( link_name, abi, args, dest) ? {
302
302
EmulateByNameResult :: NeedsJumping => {
303
303
trace ! ( "{:?}" , this. dump_place( * * dest) ) ;
304
304
this. go_to_block ( ret) ;
@@ -355,7 +355,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
355
355
abi : Abi ,
356
356
args : & [ OpTy < ' tcx , Tag > ] ,
357
357
dest : & PlaceTy < ' tcx , Tag > ,
358
- ret : mir:: BasicBlock ,
359
358
) -> InterpResult < ' tcx , EmulateByNameResult < ' mir , ' tcx > > {
360
359
let this = self . eval_context_mut ( ) ;
361
360
@@ -702,8 +701,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
702
701
703
702
// Platform-specific shims
704
703
_ => match this. tcx . sess . target . os . as_ref ( ) {
705
- target if target_os_is_unix ( target) => return shims:: unix:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest, ret ) ,
706
- "windows" => return shims:: windows:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest, ret ) ,
704
+ target if target_os_is_unix ( target) => return shims:: unix:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest) ,
705
+ "windows" => return shims:: windows:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest) ,
707
706
target => throw_unsup_format ! ( "the target `{}` is not supported" , target) ,
708
707
}
709
708
} ;
0 commit comments