|
66 | 66 | dyn pointees.
|
67 | 67 |
|
68 | 68 | Rc<[T]> and Arc<[T]> are handled separately altogether so we can actually show
|
69 |
| - the slice values. |
| 69 | + the slice values. These visualizers have a second wildcard `foo<slice2$<*>, *>` |
| 70 | + which accounts for the allocator parameter. This isn't needed for the other visualizers since |
| 71 | + their inner `*` eats the type parameter but since the slice ones match part of the type params |
| 72 | + it is necessary for them. |
70 | 73 | -->
|
71 | 74 | <!-- alloc::rc::Rc<T> -->
|
72 | 75 | <Type Name="alloc::rc::Rc<*>">
|
|
84 | 87 | </Type>
|
85 | 88 |
|
86 | 89 | <!-- alloc::rc::Rc<[T]> -->
|
87 |
| - <Type Name="alloc::rc::Rc<slice2$<*> >"> |
| 90 | + <Type Name="alloc::rc::Rc<slice2$<*>,*>"> |
88 | 91 | <DisplayString>{{ len={ptr.pointer.length} }}</DisplayString>
|
89 | 92 | <Expand>
|
90 | 93 | <Item Name="[Length]" ExcludeView="simple">ptr.pointer.length</Item>
|
|
114 | 117 | </Type>
|
115 | 118 |
|
116 | 119 | <!-- alloc::rc::Weak<[T]> -->
|
117 |
| - <Type Name="alloc::rc::Weak<slice2$<*> >"> |
| 120 | + <Type Name="alloc::rc::Weak<slice2$<*>,*>"> |
118 | 121 | <DisplayString>{{ len={ptr.pointer.length} }}</DisplayString>
|
119 | 122 | <Expand>
|
120 | 123 | <Item Name="[Length]" ExcludeView="simple">ptr.pointer.length</Item>
|
|
143 | 146 | </Type>
|
144 | 147 |
|
145 | 148 | <!-- alloc::sync::Arc<[T]> -->
|
146 |
| - <Type Name="alloc::sync::Arc<slice2$<*> >"> |
| 149 | + <Type Name="alloc::sync::Arc<slice2$<*>,*>"> |
147 | 150 | <DisplayString>{{ len={ptr.pointer.length} }}</DisplayString>
|
148 | 151 | <Expand>
|
149 | 152 | <Item Name="[Length]" ExcludeView="simple">ptr.pointer.length</Item>
|
|
172 | 175 | </Type>
|
173 | 176 |
|
174 | 177 | <!-- alloc::sync::Weak<[T]> -->
|
175 |
| - <Type Name="alloc::sync::Weak<slice2$<*> >"> |
| 178 | + <Type Name="alloc::sync::Weak<slice2$<*>,*>"> |
176 | 179 | <DisplayString>{{ len={ptr.pointer.length} }}</DisplayString>
|
177 | 180 | <Expand>
|
178 | 181 | <Item Name="[Length]" ExcludeView="simple">ptr.pointer.length</Item>
|
|
0 commit comments