@@ -300,8 +300,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
300300 Some ( p) => p,
301301 } ;
302302
303- // Second: functions that return.
304- match this. emulate_foreign_item_by_name ( def_id, link_name, abi, args, dest, ret ) ? {
303+ // Second: functions that return immediately .
304+ match this. emulate_foreign_item_by_name ( def_id, link_name, abi, args, dest) ? {
305305 EmulateByNameResult :: NeedsJumping | EmulateByNameResult :: ExecutedExternalCCall => {
306306 trace ! ( "{:?}" , this. dump_place( * * dest) ) ;
307307 this. go_to_block ( ret) ;
@@ -361,7 +361,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
361361 abi : Abi ,
362362 args : & [ OpTy < ' tcx , Tag > ] ,
363363 dest : & PlaceTy < ' tcx , Tag > ,
364- ret : mir:: BasicBlock ,
365364 ) -> InterpResult < ' tcx , EmulateByNameResult < ' mir , ' tcx > > {
366365 let this = self . eval_context_mut ( ) ;
367366
@@ -734,8 +733,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
734733
735734 // Platform-specific shims
736735 _ => match this. tcx . sess . target . os . as_ref ( ) {
737- 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 ) ,
738- "windows" => return shims:: windows:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest, ret ) ,
736+ target if target_os_is_unix ( target) => return shims:: unix:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest) ,
737+ "windows" => return shims:: windows:: foreign_items:: EvalContextExt :: emulate_foreign_item_by_name ( this, link_name, abi, args, dest) ,
739738 target => throw_unsup_format ! ( "the target `{}` is not supported" , target) ,
740739 }
741740 } ;
0 commit comments