about summary refs log tree commit diff
path: root/src/etc/natvis
diff options
context:
space:
mode:
authorWesley Wiser <wesleywiser@microsoft.com>2021-06-30 12:08:58 -0400
committerWesley Wiser <wesleywiser@microsoft.com>2021-07-08 12:55:49 -0400
commit691ee054d5bb8e0a95fd0486a7167bd8889ebba7 (patch)
tree7449fdf68eca09e2fdbf64ce5b2463dd109100e4 /src/etc/natvis
parentf2aba34eea86a1e3c1ebdd0b8f7adfc730169518 (diff)
downloadrust-691ee054d5bb8e0a95fd0486a7167bd8889ebba7.tar.gz
rust-691ee054d5bb8e0a95fd0486a7167bd8889ebba7.zip
Add natvis for Duration, ManuallyDrop and Pin types
Diffstat (limited to 'src/etc/natvis')
-rw-r--r--src/etc/natvis/libcore.natvis22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/etc/natvis/libcore.natvis b/src/etc/natvis/libcore.natvis
index 624495fb5ac..abac2cefa38 100644
--- a/src/etc/natvis/libcore.natvis
+++ b/src/etc/natvis/libcore.natvis
@@ -34,6 +34,13 @@
     </Expand>
   </Type>
 
+  <Type Name="core::mem::manually_drop::ManuallyDrop&lt;*&gt;">
+    <DisplayString>{value}</DisplayString>
+    <Expand>
+      <ExpandedItem>value</ExpandedItem>
+    </Expand>
+  </Type>
+
   <Type Name="core::num::nonzero::NonZeroI8">
     <DisplayString>{__0}</DisplayString>
   </Type>
@@ -91,6 +98,13 @@
     <DisplayString>(..={end})</DisplayString>
   </Type>
 
+  <Type Name="core::pin::Pin&lt;*&gt;">
+    <DisplayString>Pin({(void*)pointer}: {pointer})</DisplayString>
+    <Expand>
+      <ExpandedItem>pointer</ExpandedItem>
+    </Expand>
+  </Type>
+
   <Type Name="core::ptr::non_null::NonNull&lt;*&gt;">
     <DisplayString>NonNull({(void*) pointer}: {pointer})</DisplayString>
     <Expand>
@@ -138,4 +152,12 @@
   <Type Name="core::sync::atomic::AtomicUsize">
     <DisplayString>{v.value}</DisplayString>
   </Type>
+
+  <Type Name="core::time::Duration">
+    <DisplayString>{secs,d}s {nanos,d}ns</DisplayString>
+    <Expand>
+      <Item Name="seconds">secs</Item>
+      <Item Name="nanoseconds">nanos</Item>
+    </Expand>
+  </Type>
 </AutoVisualizer>