about summary refs log tree commit diff
path: root/src/tools/miri/tests/pass/alloc-access-tracking.stderr
blob: af124776402d058dcd822b965c752f95d6c0bbfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
note: created Miri bare-metal heap allocation of 123 bytes (alignment ALIGN bytes) with id $ALLOC
  --> tests/pass/alloc-access-tracking.rs:LL:CC
   |
LL |         let ptr = miri_alloc(123, 1);
   |                   ^^^^^^^^^^^^^^^^^^ tracking was triggered here
   |
   = note: BACKTRACE:
   = note: inside `miri_start` at tests/pass/alloc-access-tracking.rs:LL:CC

note: write access to allocation with id $ALLOC
  --> tests/pass/alloc-access-tracking.rs:LL:CC
   |
LL |         *ptr = 42; // Crucially, only a write is printed here, no read!
   |         ^^^^^^^^^ tracking was triggered here
   |
   = note: BACKTRACE:
   = note: inside `miri_start` at tests/pass/alloc-access-tracking.rs:LL:CC

note: read access to allocation with id $ALLOC
  --> tests/pass/alloc-access-tracking.rs:LL:CC
   |
LL |         assert_eq!(*ptr, 42);
   |         ^^^^^^^^^^^^^^^^^^^^ tracking was triggered here
   |
   = note: BACKTRACE:
   = note: inside `miri_start` at RUSTLIB/core/src/macros/mod.rs:LL:CC
   = note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)

note: freed allocation with id $ALLOC
  --> tests/pass/alloc-access-tracking.rs:LL:CC
   |
LL |         miri_dealloc(ptr, 123, 1);
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^ tracking was triggered here
   |
   = note: BACKTRACE:
   = note: inside `miri_start` at tests/pass/alloc-access-tracking.rs:LL:CC