Skip to content

Commit f243558

Browse files
committed
Always show variant tag in niche-layout enums
Prior to this, we only showed the `[variant]` synthetic property when the dataful variant is active. With this change, we now always show it so the behavior is consistent.
1 parent 3780684 commit f243558

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/etc/natvis/intrinsic.natvis

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@
203203
<Synthetic Condition="is_dataful()" Name="[variant]">
204204
<DisplayString>{"$T4",sb}</DisplayString>
205205
</Synthetic>
206+
<Synthetic Condition="!is_dataful()" Name="[variant]">
207+
<DisplayString>{discriminant,en}</DisplayString>
208+
</Synthetic>
206209
</Expand>
207210
</Type>
208211
</AutoVisualizer>

0 commit comments

Comments
 (0)