@@ -14,7 +14,6 @@ use std::time::{Duration, Instant};
1414
1515use build_helper:: { output, t} ;
1616use lazy_static:: lazy_static;
17- use termcolor:: { ColorSpec , WriteColor } ;
1817
1918use crate :: cache:: { Cache , Interned , INTERNER } ;
2019use crate :: check;
@@ -1568,7 +1567,6 @@ impl<'a> Builder<'a> {
15681567
15691568 let ( out, dur) = {
15701569 let instructions = ReplicationStep {
1571- color : self . build . config . color ,
15721570 cmd : self . kind ,
15731571 name : step. name ( ) ,
15741572 path : step. path ( self ) ,
@@ -1610,7 +1608,6 @@ impl<'a> Builder<'a> {
16101608}
16111609
16121610struct ReplicationStep {
1613- color : Color ,
16141611 cmd : Kind ,
16151612 name : & ' static str ,
16161613 path : PathBuf ,
@@ -1623,34 +1620,20 @@ lazy_static! {
16231620}
16241621
16251622pub ( crate ) extern "C" fn print_replication_steps ( ) {
1626- use std:: io:: Write ;
16271623 if let Some ( step) = CURRENT_INSTRUCTIONS . lock ( ) . expect ( "mutex guard is dropped on panic" ) . take ( )
16281624 {
1629- let mut stdout = termcolor:: StandardStream :: stdout ( step. color . into ( ) ) ;
16301625 // ignore errors; we're exiting anyway
1631- let mut yellow = ColorSpec :: new ( ) ;
1632- yellow. set_fg ( Some ( termcolor:: Color :: Yellow ) ) ;
1633- let _ = stdout. set_color ( & yellow) ;
1634- let _ = write ! ( stdout, "note" ) ;
1635- let _ = stdout. reset ( ) ;
1636- let _ = writeln ! ( stdout, ": failed while building {}" , step. name) ;
1637-
1638- let mut blue = ColorSpec :: new ( ) ;
1639- blue. set_fg ( Some ( termcolor:: Color :: Blue ) ) ;
1640- let _ = stdout. set_color ( & blue) ;
1641- let _ = write ! ( stdout, "help" ) ;
1642- let _ = stdout. reset ( ) ;
1643- let _ = write ! (
1644- stdout,
1645- ": to replicate this failure, run `./x.py {} {} --stage {}" ,
1626+ println ! ( "note: failed while building {}" , step. name) ;
1627+ print ! (
1628+ "help: to replicate this failure, run `./x.py {} {} --stage {}" ,
16461629 step. cmd,
16471630 step. path. display( ) ,
16481631 step. stage,
16491632 ) ;
16501633 for arg in step. test_args {
1651- let _ = write ! ( stdout , " --test-args \" {}\" " , arg) ;
1634+ print ! ( " --test-args \" {}\" " , arg) ;
16521635 }
1653- let _ = writeln ! ( stdout , "`" ) ;
1636+ println ! ( "`" ) ;
16541637 }
16551638}
16561639
0 commit comments