aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_proc_macro/src
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-03-31 15:02:25 +0100
committerEdwin Cheng <[email protected]>2020-03-31 15:20:19 +0100
commit6ed030d4b6b2bde57e44c0275b1b41903cb32d75 (patch)
treee9a56b87a023d54c72821e0e8d0da654bb270cab /crates/ra_proc_macro/src
parent02b849a2a038aee69f9997ace0295b30d8ce4c83 (diff)
Pipe error to stderr
Diffstat (limited to 'crates/ra_proc_macro/src')
-rw-r--r--crates/ra_proc_macro/src/process.rs7
1 files 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 {
55 55
56 fn restart(&mut self) -> Result<(), io::Error> { 56 fn restart(&mut self) -> Result<(), io::Error> {
57 let _ = self.child.kill(); 57 let _ = self.child.kill();
58 self.child = 58 self.child = Command::new(self.path.clone())
59 Command::new(self.path.clone()).stdin(Stdio::piped()).stdout(Stdio::piped()).spawn()?; 59 .stdin(Stdio::piped())
60 .stdout(Stdio::piped())
61 .stderr(Stdio::null())
62 .spawn()?;
60 Ok(()) 63 Ok(())
61 } 64 }
62 65