Skip to content

Commit ece8b0c

Browse files
committed
make UI tests that use --test work on panic=abort targets
by adding `-Zpanic_abort_test`, which is a no-op on panic=unwind targets fixes #135819
1 parent b5741a3 commit ece8b0c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
//@ compile-flags: --test
1+
// -Zpanic_abort_tests makes this test work on panic=abort targets and
2+
// it's a no-op on panic=unwind targets
3+
//@ compile-flags: --test -Zpanic_abort_tests
24
//@ run-pass
35

46
#![feature(core_intrinsics, generic_assert)]

tests/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
//@ compile-flags: --test
1+
// -Zpanic_abort_tests makes this test work on panic=abort targets and
2+
// it's a no-op on panic=unwind targets
3+
//@ compile-flags: --test -Zpanic_abort_tests
24
// ignore-tidy-linelength
35
//@ run-pass
46

0 commit comments

Comments
 (0)