Skip to content

Commit 3c8fff0

Browse files
author
Ellen Arteca
committed
rebasing
2 parents 22ecd13 + b9c6771 commit 3c8fff0

File tree

120 files changed

+1527
-1587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+1527
-1587
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
db41351753df840773ca628d8daa040e95d00eef
1+
880416180b0a9ee1141c07d4d17667edb77daebd

src/shims/foreign_items.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)