From 4df0f3f6a607a16def813ca6f7cf04d05160a0de Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Mon, 10 Oct 2016 18:14:45 +1300 Subject: [PATCH] Error monitor should emit error to stderr instead of stdout --- src/librustc_driver/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 492165e2f2a8e..31e960ccda242 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -1110,7 +1110,7 @@ pub fn monitor(f: F) { errors::Level::Note); } - println!("{}", str::from_utf8(&data.lock().unwrap()).unwrap()); + writeln!(io::stderr(), "{}", str::from_utf8(&data.lock().unwrap()).unwrap()).unwrap(); } exit_on_err();