@@ -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