@@ -89,9 +89,9 @@ impl Step for Docs {
8989
9090 let name = pkgname ( build, "rust-docs" ) ;
9191
92- println ! ( "Dist docs ({})" , host) ;
92+ build . info ( & format ! ( "Dist docs ({})" , host) ) ;
9393 if !build. config . docs {
94- println ! ( "\t skipping - docs disabled" ) ;
94+ build . info ( & format ! ( "\t skipping - docs disabled" ) ) ;
9595 return distdir ( build) . join ( format ! ( "{}-{}.tar.gz" , name, host) ) ;
9696 }
9797
@@ -152,9 +152,9 @@ impl Step for RustcDocs {
152152
153153 let name = pkgname ( build, "rustc-docs" ) ;
154154
155- println ! ( "Dist compiler docs ({})" , host) ;
155+ build . info ( & format ! ( "Dist compiler docs ({})" , host) ) ;
156156 if !build. config . compiler_docs {
157- println ! ( "\t skipping - compiler docs disabled" ) ;
157+ build . info ( & format ! ( "\t skipping - compiler docs disabled" ) ) ;
158158 return distdir ( build) . join ( format ! ( "{}-{}.tar.gz" , name, host) ) ;
159159 }
160160
@@ -343,7 +343,7 @@ impl Step for Mingw {
343343 return None ;
344344 }
345345
346- println ! ( "Dist mingw ({})" , host) ;
346+ build . info ( & format ! ( "Dist mingw ({})" , host) ) ;
347347 let name = pkgname ( build, "rust-mingw" ) ;
348348 let image = tmpdir ( build) . join ( format ! ( "{}-{}-image" , name, host) ) ;
349349 let _ = fs:: remove_dir_all ( & image) ;
@@ -398,7 +398,7 @@ impl Step for Rustc {
398398 let compiler = self . compiler ;
399399 let host = self . compiler . host ;
400400
401- println ! ( "Dist rustc stage{} ({})" , compiler. stage, compiler. host) ;
401+ build . info ( & format ! ( "Dist rustc stage{} ({})" , compiler. stage, compiler. host) ) ;
402402 let name = pkgname ( build, "rustc" ) ;
403403 let image = tmpdir ( build) . join ( format ! ( "{}-{}-image" , name, host) ) ;
404404 let _ = fs:: remove_dir_all ( & image) ;
@@ -627,12 +627,12 @@ impl Step for Std {
627627 let target = self . target ;
628628
629629 let name = pkgname ( build, "rust-std" ) ;
630- println ! ( "Dist std stage{} ({} -> {})" , compiler. stage, & compiler. host, target) ;
630+ build . info ( & format ! ( "Dist std stage{} ({} -> {})" , compiler. stage, & compiler. host, target) ) ;
631631
632632 // The only true set of target libraries came from the build triple, so
633633 // let's reduce redundant work by only producing archives from that host.
634634 if compiler. host != build. build {
635- println ! ( "\t skipping, not a build host" ) ;
635+ build . info ( & format ! ( "\t skipping, not a build host" ) ) ;
636636 return distdir ( build) . join ( format ! ( "{}-{}.tar.gz" , name, target) ) ;
637637 }
638638
@@ -704,11 +704,11 @@ impl Step for Analysis {
704704 let compiler = self . compiler ;
705705 let target = self . target ;
706706 assert ! ( build. config. extended) ;
707- println ! ( "Dist analysis" ) ;
707+ build . info ( & format ! ( "Dist analysis" ) ) ;
708708 let name = pkgname ( build, "rust-analysis" ) ;
709709
710710 if & compiler. host != build. build {
711- println ! ( "\t skipping, not a build host" ) ;
711+ build . info ( & format ! ( "\t skipping, not a build host" ) ) ;
712712 return distdir ( build) . join ( format ! ( "{}-{}.tar.gz" , name, target) ) ;
713713 }
714714
@@ -730,7 +730,7 @@ impl Step for Analysis {
730730 let image_src = src. join ( "save-analysis" ) ;
731731 let dst = image. join ( "lib/rustlib" ) . join ( target) . join ( "analysis" ) ;
732732 t ! ( fs:: create_dir_all( & dst) ) ;
733- println ! ( "image_src: {:?}, dst: {:?}" , image_src, dst) ;
733+ build . info ( & format ! ( "image_src: {:?}, dst: {:?}" , image_src, dst) ) ;
734734 build. cp_r ( & image_src, & dst) ;
735735
736736 let mut cmd = rust_installer ( builder) ;
@@ -813,7 +813,7 @@ impl Step for Src {
813813 /// Creates the `rust-src` installer component
814814 fn run ( self , builder : & Builder ) -> PathBuf {
815815 let build = builder. build ;
816- println ! ( "Dist src" ) ;
816+ build . info ( & format ! ( "Dist src" ) ) ;
817817
818818 let name = pkgname ( build, "rust-src" ) ;
819819 let image = tmpdir ( build) . join ( format ! ( "{}-image" , name) ) ;
@@ -908,7 +908,7 @@ impl Step for PlainSourceTarball {
908908 /// Creates the plain source tarball
909909 fn run ( self , builder : & Builder ) -> PathBuf {
910910 let build = builder. build ;
911- println ! ( "Create plain source tarball" ) ;
911+ build . info ( & format ! ( "Create plain source tarball" ) ) ;
912912
913913 // Make sure that the root folder of tarball has the correct name
914914 let plain_name = format ! ( "{}-src" , pkgname( build, "rustc" ) ) ;
@@ -985,7 +985,7 @@ impl Step for PlainSourceTarball {
985985 if let Some ( dir) = tarball. parent ( ) {
986986 build. create_dir ( & dir) ;
987987 }
988- println ! ( "running installer" ) ;
988+ build . info ( & format ! ( "running installer" ) ) ;
989989 let mut cmd = rust_installer ( builder) ;
990990 cmd. arg ( "tarball" )
991991 . arg ( "--input" ) . arg ( & plain_name)
@@ -1042,7 +1042,7 @@ impl Step for Cargo {
10421042 let stage = self . stage ;
10431043 let target = self . target ;
10441044
1045- println ! ( "Dist cargo stage{} ({})" , stage, target) ;
1045+ build . info ( & format ! ( "Dist cargo stage{} ({})" , stage, target) ) ;
10461046 let src = build. src . join ( "src/tools/cargo" ) ;
10471047 let etc = src. join ( "src/etc" ) ;
10481048 let release_num = build. release_num ( "cargo" ) ;
@@ -1130,7 +1130,7 @@ impl Step for Rls {
11301130 let target = self . target ;
11311131 assert ! ( build. config. extended) ;
11321132
1133- println ! ( "Dist RLS stage{} ({})" , stage, target) ;
1133+ build . info ( & format ! ( "Dist RLS stage{} ({})" , stage, target) ) ;
11341134 let src = build. src . join ( "src/tools/rls" ) ;
11351135 let release_num = build. release_num ( "rls" ) ;
11361136 let name = pkgname ( build, "rls" ) ;
@@ -1210,7 +1210,7 @@ impl Step for Rustfmt {
12101210 let stage = self . stage ;
12111211 let target = self . target ;
12121212
1213- println ! ( "Dist Rustfmt stage{} ({})" , stage, target) ;
1213+ build . info ( & format ! ( "Dist Rustfmt stage{} ({})" , stage, target) ) ;
12141214 let src = build. src . join ( "src/tools/rustfmt" ) ;
12151215 let release_num = build. release_num ( "rustfmt" ) ;
12161216 let name = pkgname ( build, "rustfmt" ) ;
@@ -1297,7 +1297,7 @@ impl Step for Extended {
12971297 let stage = self . stage ;
12981298 let target = self . target ;
12991299
1300- println ! ( "Dist extended stage{} ({})" , stage, target) ;
1300+ build . info ( & format ! ( "Dist extended stage{} ({})" , stage, target) ) ;
13011301
13021302 let rustc_installer = builder. ensure ( Rustc {
13031303 compiler : builder. compiler ( stage, target) ,
0 commit comments