@@ -497,7 +497,7 @@ impl AllocationExtra<Tag> for Stacks {
497
497
ptr : Pointer < Tag > ,
498
498
size : Size ,
499
499
) -> EvalResult < ' tcx > {
500
- trace ! ( "read access with tag {:?}: {:?}, size {}" , ptr. tag, ptr, size. bytes( ) ) ;
500
+ trace ! ( "read access with tag {:?}: {:?}, size {}" , ptr. tag, ptr. erase_tag ( ) , size. bytes( ) ) ;
501
501
alloc. extra . for_each ( ptr, size, |stack, global| {
502
502
stack. access ( AccessKind :: Read , ptr. tag , global) ?;
503
503
Ok ( ( ) )
@@ -510,7 +510,7 @@ impl AllocationExtra<Tag> for Stacks {
510
510
ptr : Pointer < Tag > ,
511
511
size : Size ,
512
512
) -> EvalResult < ' tcx > {
513
- trace ! ( "write access with tag {:?}: {:?}, size {}" , ptr. tag, ptr, size. bytes( ) ) ;
513
+ trace ! ( "write access with tag {:?}: {:?}, size {}" , ptr. tag, ptr. erase_tag ( ) , size. bytes( ) ) ;
514
514
alloc. extra . for_each ( ptr, size, |stack, global| {
515
515
stack. access ( AccessKind :: Write , ptr. tag , global) ?;
516
516
Ok ( ( ) )
@@ -523,7 +523,7 @@ impl AllocationExtra<Tag> for Stacks {
523
523
ptr : Pointer < Tag > ,
524
524
size : Size ,
525
525
) -> EvalResult < ' tcx > {
526
- trace ! ( "deallocation with tag {:?}: {:?}, size {}" , ptr. tag, ptr, size. bytes( ) ) ;
526
+ trace ! ( "deallocation with tag {:?}: {:?}, size {}" , ptr. tag, ptr. erase_tag ( ) , size. bytes( ) ) ;
527
527
alloc. extra . for_each ( ptr, size, |stack, global| {
528
528
stack. dealloc ( ptr. tag , global)
529
529
} )
@@ -546,7 +546,7 @@ trait EvalContextPrivExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
546
546
let protector = if protect { Some ( this. frame ( ) . extra ) } else { None } ;
547
547
let ptr = place. ptr . to_ptr ( ) ?;
548
548
trace ! ( "reborrow: {} reference {:?} derived from {:?} (pointee {}): {:?}, size {}" ,
549
- kind, new_tag, ptr. tag, place. layout. ty, ptr, size. bytes( ) ) ;
549
+ kind, new_tag, ptr. tag, place. layout. ty, ptr. erase_tag ( ) , size. bytes( ) ) ;
550
550
551
551
// Get the allocation. It might not be mutable, so we cannot use `get_mut`.
552
552
let alloc = this. memory ( ) . get ( ptr. alloc_id ) ?;
0 commit comments