diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2016-10-10 18:14:45 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2016-10-10 18:14:45 +1300 |
| commit | 4df0f3f6a607a16def813ca6f7cf04d05160a0de (patch) | |
| tree | b8ae16390f34de4b79f07e42717197b8be8ac848 | |
| parent | 9d4d0da7af77858f268a66ff144134945c880560 (diff) | |
| download | rust-4df0f3f6a607a16def813ca6f7cf04d05160a0de.tar.gz rust-4df0f3f6a607a16def813ca6f7cf04d05160a0de.zip | |
Error monitor should emit error to stderr instead of stdout
| -rw-r--r-- | src/librustc_driver/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 492165e2f2a..31e960ccda2 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -1110,7 +1110,7 @@ pub fn monitor<F: FnOnce() + Send + 'static>(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(); |
