File tree Expand file tree Collapse file tree 2 files changed +27
-13
lines changed Expand file tree Collapse file tree 2 files changed +27
-13
lines changed Original file line number Diff line number Diff line change 75
75
<DisplayString >{__0}</DisplayString >
76
76
</Type >
77
77
78
- <Type Name =" core::ptr::Unique< *> " >
79
- <DisplayString >{{ Unique {pointer} }}</DisplayString >
80
- <Expand >
81
- <Item Name =" [ptr]" >pointer</Item >
82
- </Expand >
83
- </Type >
84
-
85
- <Type Name =" core::ptr::Shared< *> " >
86
- <DisplayString >{{ Shared {pointer} }}</DisplayString >
78
+ <Type Name =" core::ptr::non_null::NonNull< *> " >
79
+ <DisplayString >NonNull({(void*) pointer}: {pointer})</DisplayString >
87
80
<Expand >
88
- <Item Name = " [ptr] " >pointer</Item >
81
+ <ExpandedItem >pointer</ExpandedItem >
89
82
</Expand >
90
83
</Type >
91
84
92
- <Type Name =" core::ptr::non_null::NonNull < *> " >
93
- <DisplayString >{(void*) pointer}</DisplayString >
85
+ <Type Name =" core::ptr::unique::Unique < *> " >
86
+ <DisplayString >Unique( {(void*)pointer}: { pointer}) </DisplayString >
94
87
<Expand >
95
- <Item Name = " [value] " >* pointer</Item >
88
+ <ExpandedItem > pointer</ExpandedItem >
96
89
</Expand >
97
90
</Type >
98
91
Original file line number Diff line number Diff line change
1
+ // only-cdb
2
+ // compile-flags:-g
3
+
4
+ // === CDB TESTS ==================================================================================
5
+
6
+ // cdb-command: g
7
+
8
+ // cdb-command: dx nonnull
9
+ // cdb-check:nonnull : NonNull(0x[...]: 0xc) [Type: core::ptr::non_null::NonNull<u32>]
10
+ // cdb-check: [<Raw View>] [Type: core::ptr::non_null::NonNull<u32>]
11
+ // cdb-checK: 0xc [Type: unsigned int]
12
+
13
+ use std:: ptr:: NonNull ;
14
+
15
+ fn main ( ) {
16
+ let nonnull: NonNull < _ > = ( & 12u32 ) . into ( ) ;
17
+
18
+ zzz ( ) ; // #break
19
+ }
20
+
21
+ fn zzz ( ) { }
You can’t perform that action at this time.
0 commit comments