Make rustdoc respect --error-format short
The other two (`human` and `json`) are already handled.
This commit is contained in:
parent
b81f5811f9
commit
360f8f8b7d
1 changed files with 6 additions and 1 deletions
|
@ -296,7 +296,12 @@ fn run_test(
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if let ErrorOutputType::HumanReadable(kind) = options.error_format {
|
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 {
|
match color_config {
|
||||||
ColorConfig::Never => {
|
ColorConfig::Never => {
|
||||||
compiler.arg("--color").arg("never");
|
compiler.arg("--color").arg("never");
|
||||||
|
|
Loading…
Reference in a new issue