Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f6150db

Browse files
committedDec 19, 2023
update natvis to match changed RawVec structure
1 parent 8199709 commit f6150db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

Diff for: ‎src/etc/natvis/liballoc.natvis

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<DisplayString>{{ len={len} }}</DisplayString>
55
<Expand>
66
<Item Name="[len]" ExcludeView="simple">len</Item>
7-
<Item Name="[capacity]" ExcludeView="simple">buf.cap</Item>
7+
<Item Name="[capacity]" ExcludeView="simple">buf.cap.__0</Item>
88
<ArrayItems>
99
<Size>len</Size>
1010
<ValuePointer>buf.ptr.pointer.pointer</ValuePointer>
@@ -15,15 +15,15 @@
1515
<DisplayString>{{ len={len} }}</DisplayString>
1616
<Expand>
1717
<Item Name="[len]" ExcludeView="simple">len</Item>
18-
<Item Name="[capacity]" ExcludeView="simple">buf.cap</Item>
18+
<Item Name="[capacity]" ExcludeView="simple">buf.cap.__0</Item>
1919
<CustomListItems>
2020
<Variable Name="i" InitialValue="0" />
2121
<Size>len</Size>
2222
<Loop>
2323
<If Condition="i == len">
2424
<Break/>
2525
</If>
26-
<Item>buf.ptr.pointer.pointer[(i + head) % buf.cap]</Item>
26+
<Item>buf.ptr.pointer.pointer[(i + head) % buf.cap.__0]</Item>
2727
<Exec>i = i + 1</Exec>
2828
</Loop>
2929
</CustomListItems>
@@ -45,7 +45,7 @@
4545
<StringView>(char*)vec.buf.ptr.pointer.pointer,[vec.len]s8</StringView>
4646
<Expand>
4747
<Item Name="[len]" ExcludeView="simple">vec.len</Item>
48-
<Item Name="[capacity]" ExcludeView="simple">vec.buf.cap</Item>
48+
<Item Name="[capacity]" ExcludeView="simple">vec.buf.cap.__0</Item>
4949
<Synthetic Name="[chars]">
5050
<DisplayString>{(char*)vec.buf.ptr.pointer.pointer,[vec.len]s8}</DisplayString>
5151
<Expand>

0 commit comments

Comments
 (0)