Skip to content

Commit d252ba3

Browse files
committed
Improve error message for tests with panic=abort
1 parent b8dca6c commit d252ba3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/libsyntax_ext/test_harness.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ pub fn inject(
6767
PanicStrategy::Unwind
6868
}
6969
(PanicStrategy::Abort, false) => {
70-
span_diagnostic.err("building tests with panic=abort is not yet supported");
70+
span_diagnostic.err("building tests with panic=abort is not supported \
71+
without `-Zpanic_abort_tests`");
7172
PanicStrategy::Unwind
7273
}
7374
(PanicStrategy::Unwind, _) => PanicStrategy::Unwind,

src/test/ui/test-panic-abort-disabled.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern:building tests with panic=abort is not yet supported
1+
// error-pattern:building tests with panic=abort is not supported
22
// no-prefer-dynamic
33
// compile-flags: --test -Cpanic=abort
44
// run-flags: --test-threads=1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: building tests with panic=abort is not yet supported
1+
error: building tests with panic=abort is not supported without `-Zpanic_abort_tests`
22

33
error: aborting due to previous error
44

0 commit comments

Comments
 (0)