File tree 3 files changed +62
-0
lines changed
3 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 34
34
</Expand >
35
35
</Type >
36
36
37
+ <Type Name =" core::mem::manually_drop::ManuallyDrop< *> " >
38
+ <DisplayString >{value}</DisplayString >
39
+ <Expand >
40
+ <ExpandedItem >value</ExpandedItem >
41
+ </Expand >
42
+ </Type >
43
+
37
44
<Type Name =" core::num::nonzero::NonZeroI8" >
38
45
<DisplayString >{__0}</DisplayString >
39
46
</Type >
91
98
<DisplayString >(..={end})</DisplayString >
92
99
</Type >
93
100
101
+ <Type Name =" core::pin::Pin< *> " >
102
+ <DisplayString >Pin({(void*)pointer}: {pointer})</DisplayString >
103
+ <Expand >
104
+ <ExpandedItem >pointer</ExpandedItem >
105
+ </Expand >
106
+ </Type >
107
+
94
108
<Type Name =" core::ptr::non_null::NonNull< *> " >
95
109
<DisplayString >NonNull({(void*) pointer}: {pointer})</DisplayString >
96
110
<Expand >
138
152
<Type Name =" core::sync::atomic::AtomicUsize" >
139
153
<DisplayString >{v.value}</DisplayString >
140
154
</Type >
155
+
156
+ <Type Name =" core::time::Duration" >
157
+ <DisplayString >{secs,d}s {nanos,d}ns</DisplayString >
158
+ <Expand >
159
+ <Item Name =" seconds" >secs</Item >
160
+ <Item Name =" nanoseconds" >nanos</Item >
161
+ </Expand >
162
+ </Type >
141
163
</AutoVisualizer >
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 duration
9
+ // cdb-check:duration : 5s 12ns [Type: core::time::Duration]
10
+ // cdb-check: [<Raw View>] [Type: core::time::Duration]
11
+ // cdb-check: seconds : 0x5 [Type: unsigned __int64]
12
+ // cdb-check: nanoseconds : 0xc [Type: unsigned int]
13
+
14
+ use std:: time:: Duration ;
15
+
16
+ fn main ( ) {
17
+ let duration = Duration :: new ( 5 , 12 ) ;
18
+
19
+ zzz ( ) ; // #break
20
+ }
21
+
22
+ fn zzz ( ) { }
Original file line number Diff line number Diff line change 10
10
// cdb-check: [<Raw View>] [Type: core::ptr::non_null::NonNull<u32>]
11
11
// cdb-checK: 0xc [Type: unsigned int]
12
12
13
+ // cdb-command: dx manuallydrop
14
+ // cdb-check:manuallydrop : 12345 [Type: core::mem::manually_drop::ManuallyDrop<i32>]
15
+ // cdb-check: [<Raw View>] [Type: core::mem::manually_drop::ManuallyDrop<i32>]
16
+
17
+ // cdb-command: dx pin
18
+ // cdb-check:pin : Pin(0x[...]: "this") [Type: core::pin::Pin<ref_mut$<alloc::string::String> >]
19
+ // cdb-check: [<Raw View>] [Type: core::pin::Pin<ref_mut$<alloc::string::String> >]
20
+ // cdb-check: [len] : 0x4 [Type: unsigned __int64]
21
+ // cdb-check: [capacity] : 0x4 [Type: unsigned __int64]
22
+ // cdb-check: [chars]
23
+
24
+ use std:: mem:: ManuallyDrop ;
25
+ use std:: pin:: Pin ;
13
26
use std:: ptr:: NonNull ;
14
27
15
28
fn main ( ) {
16
29
let nonnull: NonNull < _ > = ( & 12u32 ) . into ( ) ;
17
30
31
+ let manuallydrop = ManuallyDrop :: new ( 12345i32 ) ;
32
+
33
+ let mut s = "this" . to_string ( ) ;
34
+ let pin = Pin :: new ( & mut s) ;
35
+
18
36
zzz ( ) ; // #break
19
37
}
20
38
You can’t perform that action at this time.
0 commit comments