Skip to content

Commit

Permalink
Make rustdoc respect --error-format short
Browse files Browse the repository at this point in the history
The other two (`human` and `json`) are already handled.
  • Loading branch information
poliorcetics committed Feb 2, 2021
1 parent b81f581 commit 360f8f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/librustdoc/doctest.rs
Expand Up @@ -296,7 +296,12 @@ fn run_test(
}
});
if let ErrorOutputType::HumanReadable(kind) = options.error_format {
let (_, color_config) = kind.unzip();
let (short, color_config) = kind.unzip();

if short {
compiler.arg("--error-format").arg("short");
}

match color_config {
ColorConfig::Never => {
compiler.arg("--color").arg("never");
Expand Down

0 comments on commit 360f8f8

Please sign in to comment.