mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
Don't capture stderr
This commit is contained in:
parent
d095a307dd
commit
b932ed1f67
|
@ -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