Skip to content

Commit 84b4162

Browse files
author
The Miri Conjob Bot
committed
fmt
1 parent b407a82 commit 84b4162

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/machine.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,10 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
975975
ecx.start_panic_nounwind(msg)
976976
}
977977

978-
fn unwind_terminate(ecx: &mut InterpCx<'mir, 'tcx, Self>, reason: mir::UnwindTerminateReason) -> InterpResult<'tcx> {
978+
fn unwind_terminate(
979+
ecx: &mut InterpCx<'mir, 'tcx, Self>,
980+
reason: mir::UnwindTerminateReason,
981+
) -> InterpResult<'tcx> {
979982
// Call the lang item.
980983
let panic = ecx.tcx.lang_items().get(reason.lang_item()).unwrap();
981984
let panic = ty::Instance::mono(ecx.tcx.tcx, panic);
@@ -1410,17 +1413,14 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
14101413
ecx: &mut InterpCx<'mir, 'tcx, Self>,
14111414
frame: usize,
14121415
local: mir::Local,
1413-
mplace: &MPlaceTy<'tcx, Provenance>
1416+
mplace: &MPlaceTy<'tcx, Provenance>,
14141417
) -> InterpResult<'tcx> {
14151418
let Some(Provenance::Concrete { alloc_id, .. }) = mplace.ptr.provenance else {
14161419
panic!("after_local_allocated should only be called on fresh allocations");
14171420
};
14181421
let local_decl = &ecx.active_thread_stack()[frame].body.local_decls[local];
14191422
let span = local_decl.source_info.span;
1420-
ecx.machine
1421-
.allocation_spans
1422-
.borrow_mut()
1423-
.insert(alloc_id, (span, None));
1423+
ecx.machine.allocation_spans.borrow_mut().insert(alloc_id, (span, None));
14241424
Ok(())
14251425
}
14261426
}

0 commit comments

Comments
 (0)