about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIan Chamberlain <ichamberlain@juniper.net>2022-12-28 09:41:24 -0500
committerIan Chamberlain <ichamberlain@juniper.net>2023-01-09 11:46:29 -0500
commit40207906f42c018a775dfdffdfeb89c99660fe0a (patch)
treef6d689bf6ba47e972bd89201999bfd7c5434e530
parent1b8141b54cb5f89bd3dee7bfbab41109d1b48cb6 (diff)
downloadrust-40207906f42c018a775dfdffdfeb89c99660fe0a.tar.gz
rust-40207906f42c018a775dfdffdfeb89c99660fe0a.zip
Default to use colored ANSI diagnostics
-rw-r--r--crates/flycheck/src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/flycheck/src/lib.rs b/crates/flycheck/src/lib.rs
index 590a93fbaa1..2911c2589a3 100644
--- a/crates/flycheck/src/lib.rs
+++ b/crates/flycheck/src/lib.rs
@@ -297,8 +297,12 @@ impl FlycheckActor {
                 let mut cmd = Command::new(toolchain::cargo());
                 cmd.arg(command);
                 cmd.current_dir(&self.root);
-                cmd.args(["--workspace", "--message-format=json", "--manifest-path"])
-                    .arg(self.root.join("Cargo.toml").as_os_str());
+                cmd.args([
+                    "--workspace",
+                    "--message-format=json-diagnostic-rendered-ansi",
+                    "--manifest-path",
+                ])
+                .arg(self.root.join("Cargo.toml").as_os_str());
 
                 for target in target_triples {
                     cmd.args(["--target", target.as_str()]);