Skip to content

Commit d22969e

Browse files
authored
Merge pull request #4455 from RalfJung/rustup
Rustup
2 parents 6acaee8 + e04d799 commit d22969e

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ca98d4d4b3114116203699c2734805547df86f9a
1+
688ea65df6a47866d0f72a00f1e18b47a7edf83b

src/concurrency/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
894894
start_abi,
895895
&[func_arg],
896896
Some(&ret_place),
897-
StackPopCleanup::Root { cleanup: true },
897+
ReturnContinuation::Stop { cleanup: true },
898898
)?;
899899

900900
// Restore the old active thread frame.

src/eval.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ pub fn create_ecx<'tcx>(
436436
ImmTy::from_uint(sigpipe, ecx.machine.layouts.u8),
437437
],
438438
Some(&ret_place),
439-
StackPopCleanup::Root { cleanup: true },
439+
ReturnContinuation::Stop { cleanup: true },
440440
)?;
441441
}
442442
MiriEntryFnType::MiriStart => {
@@ -445,7 +445,7 @@ pub fn create_ecx<'tcx>(
445445
ExternAbi::Rust,
446446
&[argc, argv],
447447
Some(&ret_place),
448-
StackPopCleanup::Root { cleanup: true },
448+
ReturnContinuation::Stop { cleanup: true },
449449
)?;
450450
}
451451
}

src/helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
444444
caller_abi: ExternAbi,
445445
args: &[ImmTy<'tcx>],
446446
dest: Option<&MPlaceTy<'tcx>>,
447-
stack_pop: StackPopCleanup,
447+
cont: ReturnContinuation,
448448
) -> InterpResult<'tcx> {
449449
let this = self.eval_context_mut();
450450

@@ -472,7 +472,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
472472
&args.iter().map(|a| FnArg::Copy(a.clone().into())).collect::<Vec<_>>(),
473473
/*with_caller_location*/ false,
474474
&dest.into(),
475-
stack_pop,
475+
cont,
476476
)
477477
}
478478

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
11991199
ExternAbi::Rust,
12001200
&[],
12011201
None,
1202-
StackPopCleanup::Goto { ret: None, unwind: mir::UnwindAction::Unreachable },
1202+
ReturnContinuation::Goto { ret: None, unwind: mir::UnwindAction::Unreachable },
12031203
)?;
12041204
interp_ok(())
12051205
}

src/shims/panic.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
2222
ExternAbi::Rust,
2323
&[this.mplace_to_ref(&msg)?],
2424
None,
25-
StackPopCleanup::Goto { ret: None, unwind },
25+
ReturnContinuation::Goto { ret: None, unwind },
2626
)
2727
}
2828

@@ -41,7 +41,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
4141
ExternAbi::Rust,
4242
&[this.mplace_to_ref(&msg)?],
4343
None,
44-
StackPopCleanup::Goto { ret: None, unwind: mir::UnwindAction::Unreachable },
44+
ReturnContinuation::Goto { ret: None, unwind: mir::UnwindAction::Unreachable },
4545
)
4646
}
4747

@@ -70,7 +70,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
7070
ExternAbi::Rust,
7171
&[index, len],
7272
None,
73-
StackPopCleanup::Goto { ret: None, unwind },
73+
ReturnContinuation::Goto { ret: None, unwind },
7474
)?;
7575
}
7676
MisalignedPointerDereference { required, found } => {
@@ -91,7 +91,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
9191
ExternAbi::Rust,
9292
&[required, found],
9393
None,
94-
StackPopCleanup::Goto { ret: None, unwind },
94+
ReturnContinuation::Goto { ret: None, unwind },
9595
)?;
9696
}
9797

@@ -104,7 +104,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
104104
ExternAbi::Rust,
105105
&[],
106106
None,
107-
StackPopCleanup::Goto { ret: None, unwind },
107+
ReturnContinuation::Goto { ret: None, unwind },
108108
)?;
109109
}
110110
}

src/shims/tls.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ trait EvalContextPrivExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
325325
ExternAbi::System { unwind: false },
326326
&[null_ptr.clone(), ImmTy::from_scalar(reason, this.machine.layouts.u32), null_ptr],
327327
None,
328-
StackPopCleanup::Root { cleanup: true },
328+
ReturnContinuation::Stop { cleanup: true },
329329
)?;
330330
interp_ok(())
331331
}
@@ -346,7 +346,7 @@ trait EvalContextPrivExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
346346
ExternAbi::C { unwind: false },
347347
&[ImmTy::from_scalar(data, this.machine.layouts.mut_raw_ptr)],
348348
None,
349-
StackPopCleanup::Root { cleanup: true },
349+
ReturnContinuation::Stop { cleanup: true },
350350
)?;
351351

352352
return interp_ok(Poll::Pending);
@@ -383,7 +383,7 @@ trait EvalContextPrivExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
383383
ExternAbi::C { unwind: false },
384384
&[ImmTy::from_scalar(ptr, this.machine.layouts.mut_raw_ptr)],
385385
None,
386-
StackPopCleanup::Root { cleanup: true },
386+
ReturnContinuation::Stop { cleanup: true },
387387
)?;
388388

389389
return interp_ok(Poll::Pending);

src/shims/unwind.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
9393
&[data.clone()],
9494
None,
9595
// Directly return to caller.
96-
StackPopCleanup::Goto { ret, unwind: mir::UnwindAction::Continue },
96+
ReturnContinuation::Goto { ret, unwind: mir::UnwindAction::Continue },
9797
)?;
9898

9999
// We ourselves will return `0`, eventually (will be overwritten if we catch a panic).
@@ -144,7 +144,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
144144
&[catch_unwind.data, payload],
145145
None,
146146
// Directly return to caller of `catch_unwind`.
147-
StackPopCleanup::Goto {
147+
ReturnContinuation::Goto {
148148
ret: catch_unwind.ret,
149149
// `catch_fn` must not unwind.
150150
unwind: mir::UnwindAction::Unreachable,

0 commit comments

Comments
 (0)