From 12bed9d8cc7a63e6e7a7b147f91051ddf0f217bd Mon Sep 17 00:00:00 2001 From: Wesley Wiser Date: Mon, 17 Jul 2023 15:51:46 -0400 Subject: [PATCH] Update natvis to match full type names for Arc, Rc, Weak, etc Also update a test case to have the correct whitespace in a type name. --- src/etc/natvis/liballoc.natvis | 13 ++++++++----- tests/debuginfo/thread.rs | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/etc/natvis/liballoc.natvis b/src/etc/natvis/liballoc.natvis index c4ad98ec1d3a9..00c17d83322a8 100644 --- a/src/etc/natvis/liballoc.natvis +++ b/src/etc/natvis/liballoc.natvis @@ -66,7 +66,10 @@ dyn pointees. Rc<[T]> and Arc<[T]> are handled separately altogether so we can actually show - the slice values. + the slice values. These visualizers have a second wildcard `foo<slice2$<*>, *>` + which accounts for the allocator parameter. This isn't needed for the other visualizers since + their inner `*` eats the type parameter but since the slice ones match part of the type params + it is necessary for them. --> @@ -84,7 +87,7 @@ - + {{ len={ptr.pointer.length} }} ptr.pointer.length @@ -114,7 +117,7 @@ - + {{ len={ptr.pointer.length} }} ptr.pointer.length @@ -143,7 +146,7 @@ - + {{ len={ptr.pointer.length} }} ptr.pointer.length @@ -172,7 +175,7 @@ - + {{ len={ptr.pointer.length} }} ptr.pointer.length diff --git a/tests/debuginfo/thread.rs b/tests/debuginfo/thread.rs index 0f7d696503486..5516f4fec3ed4 100644 --- a/tests/debuginfo/thread.rs +++ b/tests/debuginfo/thread.rs @@ -14,7 +14,7 @@ // // cdb-command:dx t,d // cdb-check:t,d : [...] [Type: std::thread::Thread *] -// cdb-check:[...] inner [...][Type: core::pin::Pin>] +// cdb-check:[...] inner [...][Type: core::pin::Pin >] use std::thread;