1- note: created Miri bare-metal heap allocation of 123 bytes (alignment ALIGN bytes) with id $ALLOC
1+ note: now tracking allocation of 123 bytes (alignment ALIGN bytes) with id $ALLOC
22 --> tests/pass/alloc-access-tracking.rs:LL:CC
33 |
4- LL | let ptr = miri_alloc(123, 1 );
5- | ^^^^^^^^^^^^^^^^^^ tracking was triggered here
4+ LL | utils::miri_track_alloc(ptr );
5+ | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ tracking was triggered here
66 |
77 = note: BACKTRACE:
8- = note: inside `miri_start ` at tests/pass/alloc-access-tracking.rs:LL:CC
8+ = note: inside `main ` at tests/pass/alloc-access-tracking.rs:LL:CC
99
1010note: write access to allocation with id $ALLOC
1111 --> tests/pass/alloc-access-tracking.rs:LL:CC
@@ -14,7 +14,7 @@ LL | *ptr = 42; // Crucially, only a write is printed here, no read!
1414 | ^^^^^^^^^ tracking was triggered here
1515 |
1616 = note: BACKTRACE:
17- = note: inside `miri_start ` at tests/pass/alloc-access-tracking.rs:LL:CC
17+ = note: inside `main ` at tests/pass/alloc-access-tracking.rs:LL:CC
1818
1919note: read access to allocation with id $ALLOC
2020 --> tests/pass/alloc-access-tracking.rs:LL:CC
@@ -23,15 +23,21 @@ LL | assert_eq!(*ptr, 42);
2323 | ^^^^^^^^^^^^^^^^^^^^ tracking was triggered here
2424 |
2525 = note: BACKTRACE:
26- = note: inside `miri_start ` at RUSTLIB/core/src/macros/mod.rs:LL:CC
26+ = note: inside `main ` at RUSTLIB/core/src/macros/mod.rs:LL:CC
2727 = note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
2828
2929note: freed allocation with id $ALLOC
30- --> tests/pass/ alloc-access-tracking .rs:LL:CC
30+ --> RUSTLIB/ alloc/src/boxed .rs:LL:CC
3131 |
32- LL | miri_dealloc( ptr, 123, 1 );
33- | ^^^^^^^^^^^^^^^^^^^^^^^^^ tracking was triggered here
32+ LL | self.1.deallocate(From::from( ptr.cast()), layout );
33+ | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ tracking was triggered here
3434 |
3535 = note: BACKTRACE:
36- = note: inside `miri_start` at tests/pass/alloc-access-tracking.rs:LL:CC
36+ = note: inside `<std::boxed::Box<std::mem::MaybeUninit<[u8; 123]>> as std::ops::Drop>::drop` at RUSTLIB/alloc/src/boxed.rs:LL:CC
37+ = note: inside `std::ptr::drop_in_place::<std::boxed::Box<std::mem::MaybeUninit<[u8; 123]>>> - shim(Some(std::boxed::Box<std::mem::MaybeUninit<[u8; 123]>>))` at RUSTLIB/core/src/ptr/mod.rs:LL:CC
38+ note: inside `main`
39+ --> tests/pass/alloc-access-tracking.rs:LL:CC
40+ |
41+ LL | }
42+ | ^
3743
0 commit comments