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!(); } }