mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Improve error message for tests with panic=abort
This commit is contained in:
@@ -67,7 +67,8 @@ pub fn inject(
|
||||
PanicStrategy::Unwind
|
||||
}
|
||||
(PanicStrategy::Abort, false) => {
|
||||
span_diagnostic.err("building tests with panic=abort is not yet supported");
|
||||
span_diagnostic.err("building tests with panic=abort is not supported \
|
||||
without `-Zpanic_abort_tests`");
|
||||
PanicStrategy::Unwind
|
||||
}
|
||||
(PanicStrategy::Unwind, _) => PanicStrategy::Unwind,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// error-pattern:building tests with panic=abort is not yet supported
|
||||
// error-pattern:building tests with panic=abort is not supported
|
||||
// no-prefer-dynamic
|
||||
// compile-flags: --test -Cpanic=abort
|
||||
// run-flags: --test-threads=1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
error: building tests with panic=abort is not yet supported
|
||||
error: building tests with panic=abort is not supported without `-Zpanic_abort_tests`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user