about summary refs log tree commit diff
path: root/src/etc/natvis
diff options
context:
space:
mode:
authorWesley Wiser <wesleywiser@microsoft.com>2021-07-12 13:26:01 -0400
committerWesley Wiser <wesleywiser@microsoft.com>2021-07-12 13:26:01 -0400
commit14fdf8a115da7e88721dcbef6b35d8c6eab074f2 (patch)
treef145346635b50c97af423867b2fee50eca37389d /src/etc/natvis
parentd1852e10545c65cec73ea296436840e67309d82c (diff)
downloadrust-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/natvis')
-rw-r--r--src/etc/natvis/liballoc.natvis6
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&lt;*&gt;">
     <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&lt;*&gt;">
     <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&lt;*&gt;">