]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14296 : kballard/rust/diagnostic_color_newline, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 20 May 2014 06:41:20 +0000 (23:41 -0700)
committerbors <bors@rust-lang.org>
Tue, 20 May 2014 06:41:20 +0000 (23:41 -0700)
When printing colored diagnostics, we need to reset the terminal before
emitting the newline, not after. Otherwise it gets line-buffered and the
color won't reset until the next line is printed or the compiler exits.

Normally this isn't a problem, but when running rustc in parallel with
other processes (e.g. `make -j4`) this can cause the color to leak
to other lines.


Trivial merge