File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ fn run_test(
395
395
eprint ! ( "{}" , self . 0 ) ;
396
396
}
397
397
}
398
- let mut out_lines = str:: from_utf8 ( & output. stderr )
398
+ let mut out = str:: from_utf8 ( & output. stderr )
399
399
. unwrap ( )
400
400
. lines ( )
401
401
. filter ( |l| {
@@ -406,15 +406,15 @@ fn run_test(
406
406
true
407
407
}
408
408
} )
409
- . collect :: < Vec < _ > > ( ) ;
409
+ . intersperse_with ( || "\n " )
410
+ . collect :: < String > ( ) ;
410
411
411
412
// Add a \n to the end to properly terminate the last line,
412
413
// but only if there was output to be printed
413
- if !out_lines . is_empty ( ) {
414
- out_lines . push ( "" ) ;
414
+ if !out . is_empty ( ) {
415
+ out . push ( '\n' ) ;
415
416
}
416
417
417
- let out = out_lines. join ( "\n " ) ;
418
418
let _bomb = Bomb ( & out) ;
419
419
match ( output. status . success ( ) , lang_string. compile_fail ) {
420
420
( true , true ) => {
You can’t perform that action at this time.
0 commit comments