Don't capture stderr

This commit is contained in:
mo8it 2024-03-25 17:14:41 +01:00
parent d095a307dd
commit b932ed1f67

View file

@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use std::env; use std::env;
use std::error::Error; use std::error::Error;
use std::path::PathBuf; use std::path::PathBuf;
use std::process::Command; use std::process::{Command, Stdio};
/// Contains the structure of resulting rust-project.json file /// Contains the structure of resulting rust-project.json file
/// and functions to build the data required to create the file /// and functions to build the data required to create the file
@ -35,6 +35,7 @@ impl RustAnalyzerProject {
let toolchain = Command::new("rustc") let toolchain = Command::new("rustc")
.arg("--print") .arg("--print")
.arg("sysroot") .arg("sysroot")
.stderr(Stdio::inherit())
.output() .output()
.context("Failed to get the sysroot from `rustc`. Do you have `rustc` installed?")? .context("Failed to get the sysroot from `rustc`. Do you have `rustc` installed?")?
.stdout; .stdout;