Skip to content

Commit a38e3cb

Browse files
committed
Update debuginfo tests
1 parent 0f841eb commit a38e3cb

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

src/etc/natvis/liballoc.natvis

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</LinkedListItems>
4141
</Expand>
4242
</Type>
43-
<Type Name="alloc::string::String">
43+
<Type Name="alloc::string::string::String&lt;*&gt;">
4444
<DisplayString>{(char*)vec.buf.inner.ptr.pointer.pointer,[vec.len]s8}</DisplayString>
4545
<StringView>(char*)vec.buf.inner.ptr.pointer.pointer,[vec.len]s8</StringView>
4646
<Expand>

tests/debuginfo/closures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// cdb-check: [+0x[...]] _ref__count : 0x[...] : 2 [Type: int *]
1515
// cdb-command:dx consume_closure
1616
// cdb-check:consume_closure [Type: closures::main::closure_env$2]
17-
// cdb-check: [+0x[...]] x : [...] [Type: alloc::string::String]
17+
// cdb-check: [+0x[...]] x : [...] [Type: alloc::string::string::String<alloc::alloc::Global>]
1818
// cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
1919
// cdb-command:dx simple_closure
2020
// cdb-checksimple_closure [Type: closures::main::closure_env$5]

tests/debuginfo/coroutine-closure.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
// cdb-command: g
88
// cdb-command: dx closure
99
// cdb-check:closure [Type: coroutine_closure::main::closure_env$0]
10-
// cdb-check: [+0x[...]] y : "" [Type: alloc::string::String]
11-
// cdb-check: [+0x[...]] x : "" [Type: alloc::string::String]
10+
// cdb-check: [+0x[...]] y : "" [Type: alloc::string::string::String<alloc::alloc::Global>]
11+
// cdb-check: [+0x[...]] x : "" [Type: alloc::string::string::String<alloc::alloc::Global>]
1212
#![allow(unused)]
1313
fn main() {
1414
let x = String::new();

tests/debuginfo/msvc-pretty-enums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// lldb-check:(msvc_pretty_enums::CStyleEnum) j = High
3131

3232
// lldb-command:v k
33-
// lldb-check:(core::option::Option<alloc::string::String>) k = { value = { 0 = "IAMA optional string!" { vec = size=21 { [0] = 'I' [1] = 'A' [2] = 'M' [3] = 'A' [4] = ' ' [5] = 'o' [6] = 'p' [7] = 't' [8] = 'i' [9] = 'o' [10] = 'n' [11] = 'a' [12] = 'l' [13] = ' ' [14] = 's' [15] = 't' [16] = 'r' [17] = 'i' [18] = 'n' [19] = 'g' [20] = '!' } } } }
33+
// lldb-check:(core::option::Option<alloc::string::string::String<alloc::alloc::Global>>) k = { value = { 0 = "IAMA optional string!" { vec = size=21 { [0] = 'I' [1] = 'A' [2] = 'M' [3] = 'A' [4] = ' ' [5] = 'o' [6] = 'p' [7] = 't' [8] = 'i' [9] = 'o' [10] = 'n' [11] = 'a' [12] = 'l' [13] = ' ' [14] = 's' [15] = 't' [16] = 'r' [17] = 'i' [18] = 'n' [19] = 'g' [20] = '!' } } } }
3434

3535
// lldb-command:v l
3636
// lldb-check:(core::result::Result<u32, msvc_pretty_enums::Empty>) l = { value = { 0 = {} } }

tests/debuginfo/pretty-std.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
// gdb-check:$7 = "IAMA OS string 😃"
3232

3333
// gdb-command: print some_string
34-
// gdb-check:$8 = core::option::Option<alloc::string::String>::Some("IAMA optional string!")
34+
// gdb-check:$8 = core::option::Option<alloc::string::string::String<alloc::alloc::Global>>::Some("IAMA optional string!")
3535

3636
// gdb-command: set print elements 5
3737
// gdb-command: print some_string
38-
// gdb-check:$9 = core::option::Option<alloc::string::String>::Some("IAMA "...)
38+
// gdb-check:$9 = core::option::Option<alloc::string::string::String<alloc::alloc::Global>>::Some("IAMA "...)
3939

4040
// === LLDB TESTS ==================================================================================
4141

tests/debuginfo/strings-and-strs.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// gdb-command:run
88

99
// gdb-command:print plain_string
10-
// gdb-check:$1 = alloc::string::String {vec: alloc::vec::Vec<u8, alloc::alloc::Global> {buf: alloc::raw_vec::RawVec<u8, alloc::alloc::Global> {inner: alloc::raw_vec::RawVecInner<alloc::alloc::Global> {ptr: core::ptr::unique::Unique<u8> {pointer: core::ptr::non_null::NonNull<u8> {pointer: 0x[...]}, _marker: core::marker::PhantomData<u8>}, cap: core::num::niche_types::UsizeNoHighBit (5), alloc: alloc::alloc::Global}, _marker: core::marker::PhantomData<u8>}, len: 5}}
10+
// gdb-check:$1 = alloc::string::string::String<alloc::alloc::Global> {vec: alloc::vec::Vec<u8, alloc::alloc::Global> {buf: alloc::raw_vec::RawVec<u8, alloc::alloc::Global> {inner: alloc::raw_vec::RawVecInner<alloc::alloc::Global> {ptr: core::ptr::unique::Unique<u8> {pointer: core::ptr::non_null::NonNull<u8> {pointer: 0x[...]}, _marker: core::marker::PhantomData<u8>}, cap: core::num::niche_types::UsizeNoHighBit (5), alloc: alloc::alloc::Global}, _marker: core::marker::PhantomData<u8>}, len: 5}}
1111

1212
// gdb-command:print plain_str
1313
// gdb-check:$2 = "Hello"
@@ -24,7 +24,7 @@
2424
// === LLDB TESTS ==================================================================================
2525
// lldb-command:run
2626
// lldb-command:v plain_string
27-
// lldb-check:(alloc::string::String) plain_string = "Hello" { vec = size=5 { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' } }
27+
// lldb-check:(alloc::string::string::String<alloc::alloc::Global>) plain_string = "Hello" { vec = size=5 { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' } }
2828

2929
// lldb-command:v plain_str
3030
// lldb-check:(&str) plain_str = "Hello" { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' }
@@ -38,7 +38,6 @@
3838
// lldb-command:v str_in_rc
3939
// lldb-check:(alloc::rc::Rc<&str, alloc::alloc::Global>) str_in_rc = strong=1, weak=0 { value = "Hello" { [0] = 'H' [1] = 'e' [2] = 'l' [3] = 'l' [4] = 'o' } }
4040

41-
4241
#![allow(unused_variables)]
4342
#![feature(omit_gdb_pretty_printer_section)]
4443
#![omit_gdb_pretty_printer_section]

0 commit comments

Comments
 (0)