diff options
| author | Wesley Wiser <wesleywiser@microsoft.com> | 2021-07-12 13:26:01 -0400 |
|---|---|---|
| committer | Wesley Wiser <wesleywiser@microsoft.com> | 2021-07-12 13:26:01 -0400 |
| commit | 14fdf8a115da7e88721dcbef6b35d8c6eab074f2 (patch) | |
| tree | f145346635b50c97af423867b2fee50eca37389d /src/etc | |
| parent | d1852e10545c65cec73ea296436840e67309d82c (diff) | |
| download | rust-14fdf8a115da7e88721dcbef6b35d8c6eab074f2.tar.gz rust-14fdf8a115da7e88721dcbef6b35d8c6eab074f2.zip | |
Add test for `Unique<T>`, weak ref counts and ref counts for `Weak<T>`
Diffstat (limited to 'src/etc')
| -rw-r--r-- | src/etc/natvis/liballoc.natvis | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/etc/natvis/liballoc.natvis b/src/etc/natvis/liballoc.natvis index b9454573de8..d001f40fccb 100644 --- a/src/etc/natvis/liballoc.natvis +++ b/src/etc/natvis/liballoc.natvis @@ -64,12 +64,15 @@ <Expand> <ExpandedItem>ptr.pointer->value</ExpandedItem> <Item Name="[Reference count]">ptr.pointer->strong</Item> + <Item Name="[Weak reference count]">ptr.pointer->weak</Item> </Expand> </Type> <Type Name="alloc::rc::Weak<*>"> <DisplayString>{ptr.pointer->value}</DisplayString> <Expand> <ExpandedItem>ptr.pointer->value</ExpandedItem> + <Item Name="[Reference count]">ptr.pointer->strong</Item> + <Item Name="[Weak reference count]">ptr.pointer->weak</Item> </Expand> </Type> @@ -78,12 +81,15 @@ <Expand> <ExpandedItem>ptr.pointer->data</ExpandedItem> <Item Name="[Reference count]">ptr.pointer->strong</Item> + <Item Name="[Weak reference count]">ptr.pointer->weak</Item> </Expand> </Type> <Type Name="alloc::sync::Weak<*>"> <DisplayString>{ptr.pointer->data}</DisplayString> <Expand> <ExpandedItem>ptr.pointer->data</ExpandedItem> + <Item Name="[Reference count]">ptr.pointer->strong</Item> + <Item Name="[Weak reference count]">ptr.pointer->weak</Item> </Expand> </Type> <Type Name="alloc::borrow::Cow<*>"> |
