Skip to content

Commit b0564e3

Browse files
committed
tests: basic-[debugger-]stepping.rs: Disable SingleUseConsts MIR pass
To make more of the test pass. It should not be necessary to disable this pass, but by doing it we can avoid further regressions while we figure out how to solve this use case properly. The last two `FIXME(#33013)` didn't go away from this change, only the first six. But that can be investigated separately.
1 parent ff5be13 commit b0564e3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/debuginfo/basic-stepping.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
//@ ignore-aarch64: Doesn't work yet.
66
//@ ignore-loongarch64: Doesn't work yet.
77
//@ ignore-riscv64: Doesn't work yet.
8-
//@ compile-flags: -g
8+
// FIXME: It should not be necessary to disable SingleUseConsts
9+
//@ compile-flags: -g -Zmir-enable-passes=-SingleUseConsts
910

1011
// gdb-command: run
1112
// FIXME(#97083): Should we be able to break on initialization of zero-sized types?
@@ -14,12 +15,12 @@
1415
// gdb-command: next
1516
// gdb-check: let d = c = 99;
1617
// gdb-command: next
17-
// FIXME(#33013): gdb-check: let e = "hi bob";
18-
// FIXME(#33013): gdb-command: next
19-
// FIXME(#33013): gdb-check: let f = b"hi bob";
20-
// FIXME(#33013): gdb-command: next
21-
// FIXME(#33013): gdb-check: let g = b'9';
22-
// FIXME(#33013): gdb-command: next
18+
// gdb-check: let e = "hi bob";
19+
// gdb-command: next
20+
// gdb-check: let f = b"hi bob";
21+
// gdb-command: next
22+
// gdb-check: let g = b'9';
23+
// gdb-command: next
2324
// FIXME(#33013): gdb-check: let h = ["whatever"; 8];
2425
// FIXME(#33013): gdb-command: next
2526
// gdb-check: let i = [1,2,3,4];

0 commit comments

Comments
 (0)