@@ -975,7 +975,10 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
975
975
ecx. start_panic_nounwind ( msg)
976
976
}
977
977
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 > {
979
982
// Call the lang item.
980
983
let panic = ecx. tcx . lang_items ( ) . get ( reason. lang_item ( ) ) . unwrap ( ) ;
981
984
let panic = ty:: Instance :: mono ( ecx. tcx . tcx , panic) ;
@@ -1410,17 +1413,14 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for MiriMachine<'mir, 'tcx> {
1410
1413
ecx : & mut InterpCx < ' mir , ' tcx , Self > ,
1411
1414
frame : usize ,
1412
1415
local : mir:: Local ,
1413
- mplace : & MPlaceTy < ' tcx , Provenance >
1416
+ mplace : & MPlaceTy < ' tcx , Provenance > ,
1414
1417
) -> InterpResult < ' tcx > {
1415
1418
let Some ( Provenance :: Concrete { alloc_id, .. } ) = mplace. ptr . provenance else {
1416
1419
panic ! ( "after_local_allocated should only be called on fresh allocations" ) ;
1417
1420
} ;
1418
1421
let local_decl = & ecx. active_thread_stack ( ) [ frame] . body . local_decls [ local] ;
1419
1422
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 ) ) ;
1424
1424
Ok ( ( ) )
1425
1425
}
1426
1426
}
0 commit comments