diff options
| author | Wesley Wiser <wesleywiser@microsoft.com> | 2021-06-30 12:08:58 -0400 |
|---|---|---|
| committer | Wesley Wiser <wesleywiser@microsoft.com> | 2021-07-08 12:55:49 -0400 |
| commit | 691ee054d5bb8e0a95fd0486a7167bd8889ebba7 (patch) | |
| tree | 7449fdf68eca09e2fdbf64ce5b2463dd109100e4 /src/etc/natvis | |
| parent | f2aba34eea86a1e3c1ebdd0b8f7adfc730169518 (diff) | |
| download | rust-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.natvis | 22 |
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<*>"> + <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<*>"> + <DisplayString>Pin({(void*)pointer}: {pointer})</DisplayString> + <Expand> + <ExpandedItem>pointer</ExpandedItem> + </Expand> + </Type> + <Type Name="core::ptr::non_null::NonNull<*>"> <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> |
