We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd38eea commit 813b93eCopy full SHA for 813b93e
src/librustdoc/doctest.rs
@@ -1069,13 +1069,7 @@ impl Tester for Collector {
1069
}
1070
1071
TestFailure::ExecutionFailure(out) => {
1072
- let reason = if let Some(code) = out.status.code() {
1073
- format!("exit code {code}")
1074
- } else {
1075
- String::from("terminated by signal")
1076
- };
1077
-
1078
- eprintln!("Test executable failed ({reason}).");
+ eprintln!("Test executable failed ({reason}).", reason = out.status);
1079
1080
// FIXME(#12309): An unfortunate side-effect of capturing the test
1081
// executable's output is that the relative ordering between the test's
0 commit comments