From 6ed030d4b6b2bde57e44c0275b1b41903cb32d75 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Tue, 31 Mar 2020 22:02:25 +0800 Subject: Pipe error to stderr --- crates/ra_proc_macro/src/process.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/ra_proc_macro/src/process.rs b/crates/ra_proc_macro/src/process.rs index df4d61682..f4b40ac3c 100644 --- a/crates/ra_proc_macro/src/process.rs +++ b/crates/ra_proc_macro/src/process.rs @@ -55,8 +55,11 @@ impl Process { fn restart(&mut self) -> Result<(), io::Error> { let _ = self.child.kill(); - self.child = - Command::new(self.path.clone()).stdin(Stdio::piped()).stdout(Stdio::piped()).spawn()?; + self.child = Command::new(self.path.clone()) + .stdin(Stdio::piped()) + .stdout(Stdio::piped()) + .stderr(Stdio::null()) + .spawn()?; Ok(()) } -- cgit v1.2.3