about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2019-04-02 14:48:43 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2019-04-02 16:14:59 +0200
commit5fc4149f08ea4341fc45c2c0c0149ac88e7cd3ad (patch)
tree3271762796e1270638c38456ae81bea4f7f9d618 /src
parent39b21376dbe9489b7f4d39f3bf742a44d5f3770d (diff)
downloadrust-5fc4149f08ea4341fc45c2c0c0149ac88e7cd3ad.tar.gz
rust-5fc4149f08ea4341fc45c2c0c0149ac88e7cd3ad.zip
Do not render coloful json in rustdoc
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/config.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs
index a2acb02c339..38f00268406 100644
--- a/src/librustdoc/config.rs
+++ b/src/librustdoc/config.rs
@@ -260,11 +260,11 @@ impl Options {
             Some("human") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Default(color)),
             Some("json") => ErrorOutputType::Json {
                 pretty: false,
-                json_rendered: HumanReadableErrorType::Default(color),
+                json_rendered: HumanReadableErrorType::Default(ColorConfig::Never),
             },
             Some("pretty-json") => ErrorOutputType::Json {
                 pretty: true,
-                json_rendered: HumanReadableErrorType::Default(color),
+                json_rendered: HumanReadableErrorType::Default(ColorConfig::Never),
             },
             Some("short") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Short(color)),
             Some(arg) => {