mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 14:57:32 -05:00
Don't capture stderr
This commit is contained in:
parent
d095a307dd
commit
b932ed1f67
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue