summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-03-25 17:14:41 +0100
committermo8it <mo8it@proton.me>2024-03-25 17:14:41 +0100
commitb932ed1f672532e7dccf6cd23f6b9895c24a4de7 (patch)
treedc95e2f0dc5667a42d251978503d8206c921ba57 /src
parentd095a307ddbdef1f67e89320491c76a1bed1c8eb (diff)
Don't capture stderr
Diffstat (limited to 'src')
-rw-r--r--src/project.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/project.rs b/src/project.rs
index c017aa2..1f42d4e 100644
--- a/src/project.rs
+++ b/src/project.rs
@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use std::env;
use std::error::Error;
use std::path::PathBuf;
-use std::process::Command;
+use std::process::{Command, Stdio};
/// Contains the structure of resulting rust-project.json file
/// and functions to build the data required to create the file
@@ -35,6 +35,7 @@ impl RustAnalyzerProject {
let toolchain = Command::new("rustc")
.arg("--print")
.arg("sysroot")
+ .stderr(Stdio::inherit())
.output()
.context("Failed to get the sysroot from `rustc`. Do you have `rustc` installed?")?
.stdout;