summaryrefslogtreecommitdiffstats
path: root/src/etc/natvis/intrinsic.natvis
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/natvis/intrinsic.natvis')
-rw-r--r--src/etc/natvis/intrinsic.natvis12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/etc/natvis/intrinsic.natvis b/src/etc/natvis/intrinsic.natvis
index 277e57aaf..8c16a562e 100644
--- a/src/etc/natvis/intrinsic.natvis
+++ b/src/etc/natvis/intrinsic.natvis
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
- <Type Name="str">
+ <Type Name="ref$&lt;str$&gt;">
+ <AlternativeType Name="ref_mut$&lt;str$&gt;" />
+ <AlternativeType Name="ptr_const$&lt;str$&gt;" />
+ <AlternativeType Name="ptr_mut$&lt;str$&gt;" />
+
<DisplayString>{(char*)data_ptr,[length]s8}</DisplayString>
<StringView>(char*)data_ptr,[length]s8</StringView>
<Expand>
@@ -15,7 +19,11 @@
</Synthetic>
</Expand>
</Type>
- <Type Name="slice$&lt;*&gt;">
+ <Type Name="ref$&lt;slice2$&lt;*&gt; &gt;">
+ <AlternativeType Name="ref_mut$&lt;slice2$&lt;*&gt; &gt;" />
+ <AlternativeType Name="ptr_const$&lt;slice2$&lt;*&gt; &gt;" />
+ <AlternativeType Name="ptr_mut$&lt;slice2$&lt;*&gt; &gt;" />
+
<DisplayString>{{ len={length} }}</DisplayString>
<Expand>
<Item Name="[len]" ExcludeView="simple">length</Item>