From f1817785384384d8b24b500a8ce5776d53cc0ab4 Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Wed, 1 Apr 2020 19:40:09 +0300 Subject: [PATCH] compiletest: don't use `std::io::stdout()`, as it bypasses `set_print`. --- src/tools/compiletest/src/runtest.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 0ee016f33dd..8a291a3611e 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -180,29 +180,25 @@ pub fn make_diff(expected: &str, actual: &str, context_size: usize) -> Vec { - writeln!(dest, "-\t{}", e).unwrap(); + println!("-\t{}", e); line_number += 1; } DiffLine::Context(c) => { - writeln!(dest, "{}\t{}", line_number, c).unwrap(); + println!("{}\t{}", line_number, c); line_number += 1; } DiffLine::Resulting(r) => { - writeln!(dest, "+\t{}", r).unwrap(); + println!("+\t{}", r); } } } - writeln!(dest).unwrap(); + println!(); } }