@@ -1352,7 +1352,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1352
1352
) -> InterpResult < ' tcx , Frame < ' tcx , Provenance , FrameExtra < ' tcx > > > {
1353
1353
// Start recording our event before doing anything else
1354
1354
let timing = if let Some ( profiler) = ecx. machine . profiler . as_ref ( ) {
1355
- let fn_name = frame. instance . to_string ( ) ;
1355
+ let fn_name = frame. instance ( ) . to_string ( ) ;
1356
1356
let entry = ecx. machine . string_cache . entry ( fn_name. clone ( ) ) ;
1357
1357
let name = entry. or_insert_with ( || profiler. alloc_string ( & * fn_name) ) ;
1358
1358
@@ -1443,7 +1443,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1443
1443
// tracing-tree can autoamtically annotate scope changes, but it gets very confused by our
1444
1444
// concurrency and what it prints is just plain wrong. So we print our own information
1445
1445
// instead. (Cc https://github.com/rust-lang/miri/issues/2266)
1446
- info ! ( "Leaving {}" , ecx. frame( ) . instance) ;
1446
+ info ! ( "Leaving {}" , ecx. frame( ) . instance( ) ) ;
1447
1447
Ok ( ( ) )
1448
1448
}
1449
1449
@@ -1473,7 +1473,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1473
1473
// Needs to be done after dropping frame to show up on the right nesting level.
1474
1474
// (Cc https://github.com/rust-lang/miri/issues/2266)
1475
1475
if !ecx. active_thread_stack ( ) . is_empty ( ) {
1476
- info ! ( "Continuing in {}" , ecx. frame( ) . instance) ;
1476
+ info ! ( "Continuing in {}" , ecx. frame( ) . instance( ) ) ;
1477
1477
}
1478
1478
res
1479
1479
}
@@ -1486,7 +1486,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> {
1486
1486
let Some ( Provenance :: Concrete { alloc_id, .. } ) = mplace. ptr ( ) . provenance else {
1487
1487
panic ! ( "after_local_allocated should only be called on fresh allocations" ) ;
1488
1488
} ;
1489
- let local_decl = & ecx. frame ( ) . body . local_decls [ local] ;
1489
+ let local_decl = & ecx. frame ( ) . body ( ) . local_decls [ local] ;
1490
1490
let span = local_decl. source_info . span ;
1491
1491
ecx. machine . allocation_spans . borrow_mut ( ) . insert ( alloc_id, ( span, None ) ) ;
1492
1492
Ok ( ( ) )
0 commit comments