Skip to content

Commit 824816c

Browse files
committed
Auto merge of #1956 - RalfJung:stack-pop-cleanup, r=RalfJung
adjust for StackPopCleanup::None rename This is the Miri side of rust-lang/rust#92551
2 parents ad0c249 + 522f40b commit 824816c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ddabe0775c5f5b551d5eb54e3c4366fb8bec0c92
1+
26c9b0046f96403cdf959e4e1f874ec25f9dbf6f

src/eval.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
247247
Abi::Rust,
248248
&[Scalar::from_pointer(main_ptr, &ecx).into(), argc.into(), argv],
249249
Some(&ret_place.into()),
250-
StackPopCleanup::None { cleanup: true },
250+
StackPopCleanup::Root { cleanup: true },
251251
)?;
252252
}
253253
EntryFnType::Start => {
@@ -256,7 +256,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
256256
Abi::Rust,
257257
&[argc.into(), argv],
258258
Some(&ret_place.into()),
259-
StackPopCleanup::None { cleanup: true },
259+
StackPopCleanup::Root { cleanup: true },
260260
)?;
261261
}
262262
}

src/shims/posix/thread.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
5454
Abi::C { unwind: false },
5555
&[*func_arg],
5656
Some(&ret_place.into()),
57-
StackPopCleanup::None { cleanup: true },
57+
StackPopCleanup::Root { cleanup: true },
5858
)?;
5959

6060
// Restore the old active thread frame.

src/shims/tls.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
259259
Abi::System { unwind: false },
260260
&[Scalar::null_ptr(this).into(), reason.into(), Scalar::null_ptr(this).into()],
261261
Some(&ret_place),
262-
StackPopCleanup::None { cleanup: true },
262+
StackPopCleanup::Root { cleanup: true },
263263
)?;
264264

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

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

331331
this.enable_thread(active_thread);

0 commit comments

Comments
 (0)