diff options
| author | Wesley Wiser <wesleywiser@microsoft.com> | 2021-07-09 12:52:28 -0400 |
|---|---|---|
| committer | Wesley Wiser <wesleywiser@microsoft.com> | 2021-07-09 18:29:08 -0400 |
| commit | d1852e10545c65cec73ea296436840e67309d82c (patch) | |
| tree | 1120d16257bd483b14a4cbce8b91fdac0e9c14c8 | |
| parent | 85002741a26d6fdf6578e33aaaeace7c04c6254a (diff) | |
| download | rust-d1852e10545c65cec73ea296436840e67309d82c.tar.gz rust-d1852e10545c65cec73ea296436840e67309d82c.zip | |
Respond to review feedback
| -rw-r--r-- | src/etc/natvis/liballoc.natvis | 1 | ||||
| -rw-r--r-- | src/etc/natvis/libcore.natvis | 4 | ||||
| -rw-r--r-- | src/etc/natvis/libstd.natvis | 2 | ||||
| -rw-r--r-- | src/test/debuginfo/duration-type.rs | 4 | ||||
| -rw-r--r-- | src/test/debuginfo/marker-types.rs | 4 | ||||
| -rw-r--r-- | src/test/debuginfo/pretty-std.rs | 2 |
6 files changed, 10 insertions, 7 deletions
diff --git a/src/etc/natvis/liballoc.natvis b/src/etc/natvis/liballoc.natvis index 707643152c9..b9454573de8 100644 --- a/src/etc/natvis/liballoc.natvis +++ b/src/etc/natvis/liballoc.natvis @@ -48,6 +48,7 @@ <Item Name="[len]" ExcludeView="simple">vec.len</Item> <Item Name="[capacity]" ExcludeView="simple">vec.buf.cap</Item> <Synthetic Name="[chars]"> + <DisplayString>{(char*)vec.buf.ptr.pointer,[vec.len]s8}</DisplayString> <Expand> <ArrayItems> <Size>vec.len</Size> diff --git a/src/etc/natvis/libcore.natvis b/src/etc/natvis/libcore.natvis index abac2cefa38..fa8ee2d70bb 100644 --- a/src/etc/natvis/libcore.natvis +++ b/src/etc/natvis/libcore.natvis @@ -156,8 +156,8 @@ <Type Name="core::time::Duration"> <DisplayString>{secs,d}s {nanos,d}ns</DisplayString> <Expand> - <Item Name="seconds">secs</Item> - <Item Name="nanoseconds">nanos</Item> + <Item Name="seconds">secs,d</Item> + <Item Name="nanoseconds">nanos,d</Item> </Expand> </Type> </AutoVisualizer> diff --git a/src/etc/natvis/libstd.natvis b/src/etc/natvis/libstd.natvis index 25094fc8409..c7be0167de9 100644 --- a/src/etc/natvis/libstd.natvis +++ b/src/etc/natvis/libstd.natvis @@ -77,6 +77,7 @@ <DisplayString>{(char*)inner.data_ptr}</DisplayString> <Expand> <Synthetic Name="[chars]"> + <DisplayString>{(char*)inner.data_ptr}</DisplayString> <Expand> <ArrayItems> <Size>inner.length</Size> @@ -106,6 +107,7 @@ <DisplayString>{(char*)inner.inner.bytes.buf.ptr.pointer,[inner.inner.bytes.len]}</DisplayString> <Expand> <Synthetic Name="[chars]"> + <DisplayString>{(char*)inner.inner.bytes.buf.ptr.pointer,[inner.inner.bytes.len]}</DisplayString> <Expand> <ArrayItems> <Size>inner.inner.bytes.len</Size> diff --git a/src/test/debuginfo/duration-type.rs b/src/test/debuginfo/duration-type.rs index 3a7f9f78b5f..bc0266d644e 100644 --- a/src/test/debuginfo/duration-type.rs +++ b/src/test/debuginfo/duration-type.rs @@ -8,8 +8,8 @@ // cdb-command: dx duration // cdb-check:duration : 5s 12ns [Type: core::time::Duration] // cdb-check: [<Raw View>] [Type: core::time::Duration] -// cdb-check: seconds : 0x5 [Type: unsigned __int64] -// cdb-check: nanoseconds : 0xc [Type: unsigned int] +// cdb-check: seconds : 5 [Type: unsigned __int64] +// cdb-check: nanoseconds : 12 [Type: unsigned int] use std::time::Duration; diff --git a/src/test/debuginfo/marker-types.rs b/src/test/debuginfo/marker-types.rs index de4e8311a4f..52d70bda908 100644 --- a/src/test/debuginfo/marker-types.rs +++ b/src/test/debuginfo/marker-types.rs @@ -8,7 +8,7 @@ // cdb-command: dx nonnull // cdb-check:nonnull : NonNull(0x[...]: 0xc) [Type: core::ptr::non_null::NonNull<u32>] // cdb-check: [<Raw View>] [Type: core::ptr::non_null::NonNull<u32>] -// cdb-checK: 0xc [Type: unsigned int] +// cdb-check: 0xc [Type: unsigned int] // cdb-command: dx manuallydrop // cdb-check:manuallydrop : 12345 [Type: core::mem::manually_drop::ManuallyDrop<i32>] @@ -19,7 +19,7 @@ // cdb-check: [<Raw View>] [Type: core::pin::Pin<ref_mut$<alloc::string::String> >] // cdb-check: [len] : 0x4 [Type: unsigned __int64] // cdb-check: [capacity] : 0x4 [Type: unsigned __int64] -// cdb-check: [chars] +// cdb-check: [chars] : "this" use std::mem::ManuallyDrop; use std::pin::Pin; diff --git a/src/test/debuginfo/pretty-std.rs b/src/test/debuginfo/pretty-std.rs index 51325cd4249..303f0114b17 100644 --- a/src/test/debuginfo/pretty-std.rs +++ b/src/test/debuginfo/pretty-std.rs @@ -113,7 +113,7 @@ // cdb-command: dx os_string // cdb-check:os_string : "IAMA OS string 😃" [Type: std::ffi::os_str::OsString] // cdb-check: [<Raw View>] [Type: std::ffi::os_str::OsString] -// cdb-check: [chars] +// cdb-check: [chars] : "IAMA OS string 😃" // cdb-command: dx some // cdb-check:some : Some [Type: enum$<core::option::Option<i16> >] |
