Skip to content

Commit e25c6c9

Browse files
committed
tests/debuginfo/macro-stepping.rs: Add revisions default-mir-passes, no-SingleUseConsts-mir-pass
To prevent the test from regressing both with and without `SingleUseConsts` MIR pass.
1 parent 17f737d commit e25c6c9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/debuginfo/macro-stepping.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
#[macro_use]
1515
extern crate macro_stepping; // exports new_scope!()
1616

17-
//@ compile-flags:-g -Zmir-enable-passes=-SingleUseConsts
18-
// SingleUseConsts shouldn't need to be disabled, see #128945
17+
//@ compile-flags:-g
18+
// FIXME(#128945): It should not be necessary to disable SingleUseConsts. Revisions should not be needed in this test.
19+
//@ revisions:default-mir-passes no-SingleUseConsts-mir-pass
20+
//@ [no-SingleUseConsts-mir-pass] compile-flags:-Zmir-enable-passes=-SingleUseConsts
1921

2022
// === GDB TESTS ===================================================================================
2123

@@ -48,7 +50,7 @@ extern crate macro_stepping; // exports new_scope!()
4850
//@ gdb-check:[...]#inc-loc2[...]
4951
//@ gdb-command:next
5052
//@ gdb-command:frame
51-
//@ gdb-check:[...]#inc-loc3[...]
53+
//@ [no-SingleUseConsts-mir-pass] gdb-check:[...]#inc-loc3[...]
5254

5355
// === LLDB TESTS ==================================================================================
5456

0 commit comments

Comments
 (0)