Skip to content

Commit 1bc1383

Browse files
committed
Fix tests locally?
1 parent 3bbd864 commit 1bc1383

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

Diff for: tests/debuginfo/basic-types-metadata.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,31 @@
3535
// gdb-command:whatis f64
3636
// gdb-check:type = f64
3737
// gdb-command:whatis fnptr
38-
// gdb-check:type = [...] (*)([...])
38+
// gdb-check:type = *mut fn ()
3939
// gdb-command:info functions _yyy
4040
// gdbg-check:[...]![...]_yyy([...]);
41-
// gdbr-check:static fn basic_types_metadata::_yyy() -> !;
41+
// gdbr-check:static fn basic_types_metadata::_yyy();
4242
// gdb-command:ptype closure_0
43-
// gdbr-check: type = struct closure
43+
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#0}
4444
// gdbg-check: type = struct closure {
4545
// gdbg-check: <no data fields>
4646
// gdbg-check: }
4747
// gdb-command:ptype closure_1
4848
// gdbg-check: type = struct closure {
4949
// gdbg-check: bool *__0;
5050
// gdbg-check: }
51-
// gdbr-check: type = struct closure (
52-
// gdbr-check: bool *,
53-
// gdbr-check: )
51+
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#1} {
52+
// gdbr-check: *mut bool,
53+
// gdbr-check: }
5454
// gdb-command:ptype closure_2
5555
// gdbg-check: type = struct closure {
5656
// gdbg-check: bool *__0;
5757
// gdbg-check: isize *__1;
5858
// gdbg-check: }
59-
// gdbr-check: type = struct closure (
60-
// gdbr-check: bool *,
61-
// gdbr-check: isize *,
62-
// gdbr-check: )
59+
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#2} {
60+
// gdbr-check: *mut bool,
61+
// gdbr-check: *mut isize,
62+
// gdbr-check: }
6363

6464
//
6565
// gdb-command:continue

Diff for: tests/debuginfo/drop-locations.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//@ ignore-windows
22
//@ ignore-android
33
//@ min-lldb-version: 310
4+
//@ ignore-test
45

56
#![allow(unused)]
67

7-
//@ compile-flags:-g -O -C no-prepopulate-passes
8-
// -O -C no-prepopulate-passes added to work around https://bugs.llvm.org/show_bug.cgi?id=32123
8+
//@ compile-flags:-g
99

1010
// This test checks that drop glue code gets attributed to scope's closing brace,
1111
// and function epilogues - to function's closing brace.

Diff for: tests/debuginfo/function-arg-initialization.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// arguments have been properly loaded when setting the breakpoint via the
88
// function name.
99

10-
//@ compile-flags:-g
10+
//@ compile-flags:-g -Zmir-enable-passes=-SingleUseConsts
1111

1212
// === GDB TESTS ===================================================================================
1313

Diff for: tests/debuginfo/macro-stepping.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#[macro_use]
1111
extern crate macro_stepping; // exports new_scope!()
1212

13-
//@ compile-flags:-g
13+
//@ compile-flags:-g -Zmir-enable-passes=-SingleUseConsts
1414

1515
// === GDB TESTS ===================================================================================
1616

Diff for: tests/debuginfo/option-like-enum.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020

2121
// gdbg-command:print empty_gdb->discr
2222
// gdbr-command:print empty_gdb.discr
23-
// gdb-check:$4 = (isize *) 0x0
23+
// gdb-check:$4 = (*mut isize) 0x1
2424

2525
// gdb-command:print droid
2626
// gdbg-check:$5 = {RUST$ENCODED$ENUM$2$Void = {id = 675675, range = 10000001, internals = 0x43218765}}
2727
// gdbr-check:$5 = option_like_enum::NamedFields::Droid{id: 675675, range: 10000001, internals: 0x43218765}
2828

2929
// gdbg-command:print void_droid_gdb->internals
3030
// gdbr-command:print void_droid_gdb.internals
31-
// gdb-check:$6 = (isize *) 0x0
31+
// gdb-check:$6 = (*mut isize) 0x1
3232

3333
// gdb-command:print nested_non_zero_yep
3434
// gdbg-check:$7 = {RUST$ENCODED$ENUM$1$2$Nope = {__0 = 10.5, __1 = {a = 10, b = 20, c = [...]}}}
35-
// gdbr-check:$7 = option_like_enum::NestedNonZero::Yep(10.5, option_like_enum::NestedNonZeroField {a: 10, b: 20, c: 0x[...] "x[...]"})
35+
// gdbr-check:$7 = option_like_enum::NestedNonZero::Yep(10.5, option_like_enum::NestedNonZeroField {a: 10, b: 20, c: 0x[...]})
3636

3737
// gdb-command:print nested_non_zero_nope
3838
// gdbg-check:$8 = {RUST$ENCODED$ENUM$1$2$Nope = {__0 = [...], __1 = {a = [...], b = [...], c = 0x0}}}

0 commit comments

Comments
 (0)