Skip to content

Commit bcfb44d

Browse files
committed
Auto merge of #3383 - RalfJung:rustup, r=RalfJung
Rustup
2 parents aeee00e + 222047f commit bcfb44d

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5ac0b2d0219de2fd6fef86c69ef0cfa1e6c36f3b
1+
ee03c286cfdca26fa5b2a4ee40957625d2c826ff

src/diagnostics.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,7 @@ impl<'mir, 'tcx> MiriMachine<'mir, 'tcx> {
527527
pub fn emit_diagnostic(&self, e: NonHaltingDiagnostic) {
528528
use NonHaltingDiagnostic::*;
529529

530-
let stacktrace =
531-
MiriInterpCx::generate_stacktrace_from_stack(self.threads.active_thread_stack());
530+
let stacktrace = Frame::generate_stacktrace_from_stack(self.threads.active_thread_stack());
532531
let (stacktrace, _was_pruned) = prune_stacktrace(stacktrace, self);
533532

534533
let (title, diag_level) = match &e {

src/helpers.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
413413
.ok_or_else(|| err_ub_format!("callee has fewer arguments than expected"))?;
414414
// Make the local live, and insert the initial value.
415415
this.storage_live(local)?;
416-
let callee_arg = this.local_to_place(this.frame_idx(), local)?;
416+
let callee_arg = this.local_to_place(local)?;
417417
this.write_immediate(*arg, &callee_arg)?;
418418
}
419419
if callee_args.next().is_some() {

src/machine.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1488,14 +1488,13 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
14881488

14891489
fn after_local_allocated(
14901490
ecx: &mut InterpCx<'mir, 'tcx, Self>,
1491-
frame: usize,
14921491
local: mir::Local,
14931492
mplace: &MPlaceTy<'tcx, Provenance>,
14941493
) -> InterpResult<'tcx> {
14951494
let Some(Provenance::Concrete { alloc_id, .. }) = mplace.ptr().provenance else {
14961495
panic!("after_local_allocated should only be called on fresh allocations");
14971496
};
1498-
let local_decl = &ecx.active_thread_stack()[frame].body.local_decls[local];
1497+
let local_decl = &ecx.frame().body.local_decls[local];
14991498
let span = local_decl.source_info.span;
15001499
ecx.machine.allocation_spans.borrow_mut().insert(alloc_id, (span, None));
15011500
Ok(())
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
The loop took around 7s
1+
The loop took around 12s
22
(It's fine for this number to change when you `--bless` this test.)

0 commit comments

Comments
 (0)