Skip to content

Commit

Permalink
Auto merge of #1956 - RalfJung:stack-pop-cleanup, r=RalfJung
Browse files Browse the repository at this point in the history
adjust for StackPopCleanup::None rename

This is the Miri side of rust-lang/rust#92551
  • Loading branch information
bors committed Jan 5, 2022
2 parents ad0c249 + 522f40b commit 824816c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ddabe0775c5f5b551d5eb54e3c4366fb8bec0c92
26c9b0046f96403cdf959e4e1f874ec25f9dbf6f
4 changes: 2 additions & 2 deletions src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
Abi::Rust,
&[Scalar::from_pointer(main_ptr, &ecx).into(), argc.into(), argv],
Some(&ret_place.into()),
StackPopCleanup::None { cleanup: true },
StackPopCleanup::Root { cleanup: true },
)?;
}
EntryFnType::Start => {
Expand All @@ -256,7 +256,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
Abi::Rust,
&[argc.into(), argv],
Some(&ret_place.into()),
StackPopCleanup::None { cleanup: true },
StackPopCleanup::Root { cleanup: true },
)?;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/shims/posix/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
Abi::C { unwind: false },
&[*func_arg],
Some(&ret_place.into()),
StackPopCleanup::None { cleanup: true },
StackPopCleanup::Root { cleanup: true },
)?;

// Restore the old active thread frame.
Expand Down
6 changes: 3 additions & 3 deletions src/shims/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
Abi::System { unwind: false },
&[Scalar::null_ptr(this).into(), reason.into(), Scalar::null_ptr(this).into()],
Some(&ret_place),
StackPopCleanup::None { cleanup: true },
StackPopCleanup::Root { cleanup: true },
)?;

this.enable_thread(active_thread);
Expand All @@ -282,7 +282,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
Abi::C { unwind: false },
&[data.into()],
Some(&ret_place),
StackPopCleanup::None { cleanup: true },
StackPopCleanup::Root { cleanup: true },
)?;

// Enable the thread so that it steps through the destructor which
Expand Down Expand Up @@ -325,7 +325,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
Abi::C { unwind: false },
&[ptr.into()],
Some(&ret_place),
StackPopCleanup::None { cleanup: true },
StackPopCleanup::Root { cleanup: true },
)?;

this.enable_thread(active_thread);
Expand Down

0 comments on commit 824816c

Please sign in to comment.