Skip to content

Commit d3e83e1

Browse files
committed
Target of name is wrong
1 parent 6db68aa commit d3e83e1

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

tests/pass/tree_borrows/formatting.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ fn main() {
1616
// decimal digits to verify proper padding.
1717
unsafe fn alignment_check() {
1818
let data: &mut [u8] = &mut [0; 1024];
19-
name!(data.as_ptr()=>2, "data");
19+
name!(data.as_ptr(), "data");
20+
name!(data.as_ptr(), "data");
2021
let alloc_id = alloc_id!(data.as_ptr());
2122
let x = &mut data[1];
2223
name!(x as *mut _, "data[1]");

tests/pass/tree_borrows/formatting.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Warning: this tree is indicative only. Some tags may have been hidden.
33
0.. 1.. 2.. 10.. 11..100..101..1000..1001..1024
44
| Act| Act| Act| Act| Act| Act| Act| Act| Act| └─┬──<TAG=root of the allocation>
5-
| Res| Act| Res| Act| Res| Act| Res| Act| Res| └─┬──<TAG=data>
5+
| Res| Act| Res| Act| Res| Act| Res| Act| Res| └─┬──<TAG=data, data>
66
|----| Act|----|?Dis|----|?Dis| ----| ?Dis| ----| ├────<TAG=data[1]>
77
|----|----|----| Act|----|?Dis| ----| ?Dis| ----| ├────<TAG=data[10]>
88
|----|----|----|----|----| Frz| ----| ?Dis| ----| ├────<TAG=data[100]>

tests/pass/tree_borrows/unique.default.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Warning: this tree is indicative only. Some tags may have been hidden.
33
0.. 1
44
| Act| └─┬──<TAG=root of the allocation>
55
| Res| └─┬──<TAG=base>
6-
| Res| └────<TAG=raw, uniq>
6+
| Res| └────<TAG=raw, uniq, uniq>
77
──────────────────────────────────────────────────────────────────────
88
──────────────────────────────────────────────────────────────────────
99
Warning: this tree is indicative only. Some tags may have been hidden.
1010
0.. 1
1111
| Act| └─┬──<TAG=root of the allocation>
1212
| Act| └─┬──<TAG=base>
13-
| Act| └────<TAG=raw, uniq>
13+
| Act| └────<TAG=raw, uniq, uniq>
1414
──────────────────────────────────────────────────────────────────────
1515
──────────────────────────────────────────────────────────────────────
1616
Warning: this tree is indicative only. Some tags may have been hidden.
1717
0.. 1
1818
| Act| └─┬──<TAG=root of the allocation>
1919
| Act| └─┬──<TAG=base>
20-
| Act| └────<TAG=raw, uniq>
20+
| Act| └────<TAG=raw, uniq, uniq>
2121
──────────────────────────────────────────────────────────────────────

tests/pass/tree_borrows/unique.rs

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ fn main() {
2525
// and uninitialized permissions.
2626
let uniq = Unique::new_unchecked(raw);
2727
name!(uniq.as_ptr(), "uniq");
28+
name!(uniq.as_ptr(), "uniq");
2829
print_state!(alloc_id);
2930

3031
// We can activate the Unique and use it mutably.

tests/pass/tree_borrows/unique.uniq.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ Warning: this tree is indicative only. Some tags may have been hidden.
44
| Act| └─┬──<TAG=root of the allocation>
55
| Res| └─┬──<TAG=base>
66
| Res| └─┬──<TAG=raw>
7-
|----| └────<TAG=uniq>
7+
|----| └────<TAG=uniq, uniq>
88
──────────────────────────────────────────────────────────────────────
99
──────────────────────────────────────────────────────────────────────
1010
Warning: this tree is indicative only. Some tags may have been hidden.
1111
0.. 1
1212
| Act| └─┬──<TAG=root of the allocation>
1313
| Act| └─┬──<TAG=base>
1414
| Act| └─┬──<TAG=raw>
15-
| Act| └────<TAG=uniq>
15+
| Act| └────<TAG=uniq, uniq>
1616
──────────────────────────────────────────────────────────────────────
1717
──────────────────────────────────────────────────────────────────────
1818
Warning: this tree is indicative only. Some tags may have been hidden.
1919
0.. 1
2020
| Act| └─┬──<TAG=root of the allocation>
2121
| Act| └─┬──<TAG=base>
2222
| Act| └─┬──<TAG=raw>
23-
| Dis| └────<TAG=uniq>
23+
| Dis| └────<TAG=uniq, uniq>
2424
──────────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)