Unnamed repository; edit this file 'description' to name the repository.
Default to use colored ANSI diagnostics
Ian Chamberlain 2023-01-09
parent 1b8141b · commit 4020790
-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 590a93fbaa..2911c2589a 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()]);