Skip to content

Commit 360f8f8

Browse files
committed
Make rustdoc respect --error-format short
The other two (`human` and `json`) are already handled.
1 parent b81f581 commit 360f8f8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/librustdoc/doctest.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,12 @@ fn run_test(
296296
}
297297
});
298298
if let ErrorOutputType::HumanReadable(kind) = options.error_format {
299-
let (_, color_config) = kind.unzip();
299+
let (short, color_config) = kind.unzip();
300+
301+
if short {
302+
compiler.arg("--error-format").arg("short");
303+
}
304+
300305
match color_config {
301306
ColorConfig::Never => {
302307
compiler.arg("--color").arg("never");

0 commit comments

Comments
 (0)