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.
This commit is contained in:
Martin Nordholts
2025-12-20 11:49:04 +01:00
parent 4516daccb3
commit 423a8dc409
+5 -3
View File
@@ -14,8 +14,10 @@
#[macro_use]
extern crate macro_stepping; // exports new_scope!()
//@ compile-flags:-g -Zmir-enable-passes=-SingleUseConsts
// SingleUseConsts shouldn't need to be disabled, see #128945
//@ compile-flags: -g
// FIXME(#128945): SingleUseConsts shouldn't need to be disabled.
//@ revisions: default-mir-passes no-SingleUseConsts-mir-pass
//@ [no-SingleUseConsts-mir-pass] compile-flags: -Zmir-enable-passes=-SingleUseConsts
// === GDB TESTS ===================================================================================
@@ -48,7 +50,7 @@
//@ gdb-check:[...]#inc-loc2[...]
//@ gdb-command:next
//@ gdb-command:frame
//@ gdb-check:[...]#inc-loc3[...]
//@ [no-SingleUseConsts-mir-pass] gdb-check:[...]#inc-loc3[...]
// === LLDB TESTS ==================================================================================