@@ -260,7 +260,7 @@ impl GlobalStateInner {
260
260
kind : MemoryKind ,
261
261
machine : & MiriMachine < ' _ > ,
262
262
) -> AllocState {
263
- let _span = enter_trace_span ! ( borrow_tracker:: new_allocation, ?id, ?alloc_size, ?kind) ;
263
+ let _trace = enter_trace_span ! ( borrow_tracker:: new_allocation, ?id, ?alloc_size, ?kind) ;
264
264
match self . borrow_tracker_method {
265
265
BorrowTrackerMethod :: StackedBorrows =>
266
266
AllocState :: StackedBorrows ( Box :: new ( RefCell :: new ( Stacks :: new_allocation (
@@ -281,7 +281,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
281
281
kind : RetagKind ,
282
282
val : & ImmTy < ' tcx > ,
283
283
) -> InterpResult < ' tcx , ImmTy < ' tcx > > {
284
- let _span = enter_trace_span ! ( borrow_tracker:: retag_ptr_value, ?kind, ?val. layout) ;
284
+ let _trace = enter_trace_span ! ( borrow_tracker:: retag_ptr_value, ?kind, ?val. layout) ;
285
285
let this = self . eval_context_mut ( ) ;
286
286
let method = this. machine . borrow_tracker . as_ref ( ) . unwrap ( ) . borrow ( ) . borrow_tracker_method ;
287
287
match method {
@@ -295,7 +295,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
295
295
kind : RetagKind ,
296
296
place : & PlaceTy < ' tcx > ,
297
297
) -> InterpResult < ' tcx > {
298
- let _span = enter_trace_span ! ( borrow_tracker:: retag_place_contents, ?kind, ?place) ;
298
+ let _trace = enter_trace_span ! ( borrow_tracker:: retag_place_contents, ?kind, ?place) ;
299
299
let this = self . eval_context_mut ( ) ;
300
300
let method = this. machine . borrow_tracker . as_ref ( ) . unwrap ( ) . borrow ( ) . borrow_tracker_method ;
301
301
match method {
@@ -305,7 +305,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
305
305
}
306
306
307
307
fn protect_place ( & mut self , place : & MPlaceTy < ' tcx > ) -> InterpResult < ' tcx , MPlaceTy < ' tcx > > {
308
- let _span = enter_trace_span ! ( borrow_tracker:: protect_place, ?place) ;
308
+ let _trace = enter_trace_span ! ( borrow_tracker:: protect_place, ?place) ;
309
309
let this = self . eval_context_mut ( ) ;
310
310
let method = this. machine . borrow_tracker . as_ref ( ) . unwrap ( ) . borrow ( ) . borrow_tracker_method ;
311
311
match method {
@@ -315,7 +315,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
315
315
}
316
316
317
317
fn expose_tag ( & self , alloc_id : AllocId , tag : BorTag ) -> InterpResult < ' tcx > {
318
- let _span =
318
+ let _trace =
319
319
enter_trace_span ! ( borrow_tracker:: expose_tag, alloc_id = alloc_id. 0 , tag = tag. 0 ) ;
320
320
let this = self . eval_context_ref ( ) ;
321
321
let method = this. machine . borrow_tracker . as_ref ( ) . unwrap ( ) . borrow ( ) . borrow_tracker_method ;
@@ -360,7 +360,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
360
360
& self ,
361
361
frame : & Frame < ' tcx , Provenance , FrameExtra < ' tcx > > ,
362
362
) -> InterpResult < ' tcx > {
363
- let _span = enter_trace_span ! ( borrow_tracker:: on_stack_pop) ;
363
+ let _trace = enter_trace_span ! ( borrow_tracker:: on_stack_pop) ;
364
364
let this = self . eval_context_ref ( ) ;
365
365
let borrow_tracker = this. machine . borrow_tracker . as_ref ( ) . unwrap ( ) ;
366
366
// The body of this loop needs `borrow_tracker` immutably
@@ -438,7 +438,7 @@ impl AllocState {
438
438
range : AllocRange ,
439
439
machine : & MiriMachine < ' tcx > ,
440
440
) -> InterpResult < ' tcx > {
441
- let _span = enter_trace_span ! ( borrow_tracker:: before_memory_read, alloc_id = alloc_id. 0 ) ;
441
+ let _trace = enter_trace_span ! ( borrow_tracker:: before_memory_read, alloc_id = alloc_id. 0 ) ;
442
442
match self {
443
443
AllocState :: StackedBorrows ( sb) =>
444
444
sb. borrow_mut ( ) . before_memory_read ( alloc_id, prov_extra, range, machine) ,
@@ -460,7 +460,7 @@ impl AllocState {
460
460
range : AllocRange ,
461
461
machine : & MiriMachine < ' tcx > ,
462
462
) -> InterpResult < ' tcx > {
463
- let _span = enter_trace_span ! ( borrow_tracker:: before_memory_write, alloc_id = alloc_id. 0 ) ;
463
+ let _trace = enter_trace_span ! ( borrow_tracker:: before_memory_write, alloc_id = alloc_id. 0 ) ;
464
464
match self {
465
465
AllocState :: StackedBorrows ( sb) =>
466
466
sb. get_mut ( ) . before_memory_write ( alloc_id, prov_extra, range, machine) ,
@@ -482,7 +482,7 @@ impl AllocState {
482
482
size : Size ,
483
483
machine : & MiriMachine < ' tcx > ,
484
484
) -> InterpResult < ' tcx > {
485
- let _span =
485
+ let _trace =
486
486
enter_trace_span ! ( borrow_tracker:: before_memory_deallocation, alloc_id = alloc_id. 0 ) ;
487
487
match self {
488
488
AllocState :: StackedBorrows ( sb) =>
@@ -493,7 +493,7 @@ impl AllocState {
493
493
}
494
494
495
495
pub fn remove_unreachable_tags ( & self , tags : & FxHashSet < BorTag > ) {
496
- let _span = enter_trace_span ! ( borrow_tracker:: remove_unreachable_tags) ;
496
+ let _trace = enter_trace_span ! ( borrow_tracker:: remove_unreachable_tags) ;
497
497
match self {
498
498
AllocState :: StackedBorrows ( sb) => sb. borrow_mut ( ) . remove_unreachable_tags ( tags) ,
499
499
AllocState :: TreeBorrows ( tb) => tb. borrow_mut ( ) . remove_unreachable_tags ( tags) ,
@@ -508,7 +508,7 @@ impl AllocState {
508
508
tag : BorTag ,
509
509
alloc_id : AllocId , // diagnostics
510
510
) -> InterpResult < ' tcx > {
511
- let _span = enter_trace_span ! (
511
+ let _trace = enter_trace_span ! (
512
512
borrow_tracker:: release_protector,
513
513
alloc_id = alloc_id. 0 ,
514
514
tag = tag. 0
@@ -523,7 +523,7 @@ impl AllocState {
523
523
524
524
impl VisitProvenance for AllocState {
525
525
fn visit_provenance ( & self , visit : & mut VisitWith < ' _ > ) {
526
- let _span = enter_trace_span ! ( borrow_tracker:: visit_provenance) ;
526
+ let _trace = enter_trace_span ! ( borrow_tracker:: visit_provenance) ;
527
527
match self {
528
528
AllocState :: StackedBorrows ( sb) => sb. visit_provenance ( visit) ,
529
529
AllocState :: TreeBorrows ( tb) => tb. visit_provenance ( visit) ,
0 commit comments