Skip to content

Commit 4df0f3f

Browse files
committed
Error monitor should emit error to stderr instead of stdout
1 parent 9d4d0da commit 4df0f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_driver/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ pub fn monitor<F: FnOnce() + Send + 'static>(f: F) {
11101110
errors::Level::Note);
11111111
}
11121112

1113-
println!("{}", str::from_utf8(&data.lock().unwrap()).unwrap());
1113+
writeln!(io::stderr(), "{}", str::from_utf8(&data.lock().unwrap()).unwrap()).unwrap();
11141114
}
11151115

11161116
exit_on_err();

0 commit comments

Comments
 (0)