@@ -89,9 +89,9 @@ impl Step for Docs {
89
89
90
90
let name = pkgname ( build, "rust-docs" ) ;
91
91
92
- println ! ( "Dist docs ({})" , host) ;
92
+ build . info ( & format ! ( "Dist docs ({})" , host) ) ;
93
93
if !build. config . docs {
94
- println ! ( "\t skipping - docs disabled" ) ;
94
+ build . info ( & format ! ( "\t skipping - docs disabled" ) ) ;
95
95
return distdir ( build) . join ( format ! ( "{}-{}.tar.gz" , name, host) ) ;
96
96
}
97
97
@@ -152,9 +152,9 @@ impl Step for RustcDocs {
152
152
153
153
let name = pkgname ( build, "rustc-docs" ) ;
154
154
155
- println ! ( "Dist compiler docs ({})" , host) ;
155
+ build . info ( & format ! ( "Dist compiler docs ({})" , host) ) ;
156
156
if !build. config . compiler_docs {
157
- println ! ( "\t skipping - compiler docs disabled" ) ;
157
+ build . info ( & format ! ( "\t skipping - compiler docs disabled" ) ) ;
158
158
return distdir ( build) . join ( format ! ( "{}-{}.tar.gz" , name, host) ) ;
159
159
}
160
160
@@ -343,7 +343,7 @@ impl Step for Mingw {
343
343
return None ;
344
344
}
345
345
346
- println ! ( "Dist mingw ({})" , host) ;
346
+ build . info ( & format ! ( "Dist mingw ({})" , host) ) ;
347
347
let name = pkgname ( build, "rust-mingw" ) ;
348
348
let image = tmpdir ( build) . join ( format ! ( "{}-{}-image" , name, host) ) ;
349
349
let _ = fs:: remove_dir_all ( & image) ;
@@ -398,7 +398,7 @@ impl Step for Rustc {
398
398
let compiler = self . compiler ;
399
399
let host = self . compiler . host ;
400
400
401
- println ! ( "Dist rustc stage{} ({})" , compiler. stage, compiler. host) ;
401
+ build . info ( & format ! ( "Dist rustc stage{} ({})" , compiler. stage, compiler. host) ) ;
402
402
let name = pkgname ( build, "rustc" ) ;
403
403
let image = tmpdir ( build) . join ( format ! ( "{}-{}-image" , name, host) ) ;
404
404
let _ = fs:: remove_dir_all ( & image) ;
@@ -627,12 +627,12 @@ impl Step for Std {
627
627
let target = self . target ;
628
628
629
629
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) ) ;
631
631
632
632
// The only true set of target libraries came from the build triple, so
633
633
// let's reduce redundant work by only producing archives from that host.
634
634
if compiler. host != build. build {
635
- println ! ( "\t skipping, not a build host" ) ;
635
+ build . info ( & format ! ( "\t skipping, not a build host" ) ) ;
636
636
return distdir ( build) . join ( format ! ( "{}-{}.tar.gz" , name, target) ) ;
637
637
}
638
638
@@ -704,11 +704,11 @@ impl Step for Analysis {
704
704
let compiler = self . compiler ;
705
705
let target = self . target ;
706
706
assert ! ( build. config. extended) ;
707
- println ! ( "Dist analysis" ) ;
707
+ build . info ( & format ! ( "Dist analysis" ) ) ;
708
708
let name = pkgname ( build, "rust-analysis" ) ;
709
709
710
710
if & compiler. host != build. build {
711
- println ! ( "\t skipping, not a build host" ) ;
711
+ build . info ( & format ! ( "\t skipping, not a build host" ) ) ;
712
712
return distdir ( build) . join ( format ! ( "{}-{}.tar.gz" , name, target) ) ;
713
713
}
714
714
@@ -730,7 +730,7 @@ impl Step for Analysis {
730
730
let image_src = src. join ( "save-analysis" ) ;
731
731
let dst = image. join ( "lib/rustlib" ) . join ( target) . join ( "analysis" ) ;
732
732
t ! ( fs:: create_dir_all( & dst) ) ;
733
- println ! ( "image_src: {:?}, dst: {:?}" , image_src, dst) ;
733
+ build . info ( & format ! ( "image_src: {:?}, dst: {:?}" , image_src, dst) ) ;
734
734
build. cp_r ( & image_src, & dst) ;
735
735
736
736
let mut cmd = rust_installer ( builder) ;
@@ -813,7 +813,7 @@ impl Step for Src {
813
813
/// Creates the `rust-src` installer component
814
814
fn run ( self , builder : & Builder ) -> PathBuf {
815
815
let build = builder. build ;
816
- println ! ( "Dist src" ) ;
816
+ build . info ( & format ! ( "Dist src" ) ) ;
817
817
818
818
let name = pkgname ( build, "rust-src" ) ;
819
819
let image = tmpdir ( build) . join ( format ! ( "{}-image" , name) ) ;
@@ -908,7 +908,7 @@ impl Step for PlainSourceTarball {
908
908
/// Creates the plain source tarball
909
909
fn run ( self , builder : & Builder ) -> PathBuf {
910
910
let build = builder. build ;
911
- println ! ( "Create plain source tarball" ) ;
911
+ build . info ( & format ! ( "Create plain source tarball" ) ) ;
912
912
913
913
// Make sure that the root folder of tarball has the correct name
914
914
let plain_name = format ! ( "{}-src" , pkgname( build, "rustc" ) ) ;
@@ -985,7 +985,7 @@ impl Step for PlainSourceTarball {
985
985
if let Some ( dir) = tarball. parent ( ) {
986
986
build. create_dir ( & dir) ;
987
987
}
988
- println ! ( "running installer" ) ;
988
+ build . info ( & format ! ( "running installer" ) ) ;
989
989
let mut cmd = rust_installer ( builder) ;
990
990
cmd. arg ( "tarball" )
991
991
. arg ( "--input" ) . arg ( & plain_name)
@@ -1042,7 +1042,7 @@ impl Step for Cargo {
1042
1042
let stage = self . stage ;
1043
1043
let target = self . target ;
1044
1044
1045
- println ! ( "Dist cargo stage{} ({})" , stage, target) ;
1045
+ build . info ( & format ! ( "Dist cargo stage{} ({})" , stage, target) ) ;
1046
1046
let src = build. src . join ( "src/tools/cargo" ) ;
1047
1047
let etc = src. join ( "src/etc" ) ;
1048
1048
let release_num = build. release_num ( "cargo" ) ;
@@ -1130,7 +1130,7 @@ impl Step for Rls {
1130
1130
let target = self . target ;
1131
1131
assert ! ( build. config. extended) ;
1132
1132
1133
- println ! ( "Dist RLS stage{} ({})" , stage, target) ;
1133
+ build . info ( & format ! ( "Dist RLS stage{} ({})" , stage, target) ) ;
1134
1134
let src = build. src . join ( "src/tools/rls" ) ;
1135
1135
let release_num = build. release_num ( "rls" ) ;
1136
1136
let name = pkgname ( build, "rls" ) ;
@@ -1210,7 +1210,7 @@ impl Step for Rustfmt {
1210
1210
let stage = self . stage ;
1211
1211
let target = self . target ;
1212
1212
1213
- println ! ( "Dist Rustfmt stage{} ({})" , stage, target) ;
1213
+ build . info ( & format ! ( "Dist Rustfmt stage{} ({})" , stage, target) ) ;
1214
1214
let src = build. src . join ( "src/tools/rustfmt" ) ;
1215
1215
let release_num = build. release_num ( "rustfmt" ) ;
1216
1216
let name = pkgname ( build, "rustfmt" ) ;
@@ -1297,7 +1297,7 @@ impl Step for Extended {
1297
1297
let stage = self . stage ;
1298
1298
let target = self . target ;
1299
1299
1300
- println ! ( "Dist extended stage{} ({})" , stage, target) ;
1300
+ build . info ( & format ! ( "Dist extended stage{} ({})" , stage, target) ) ;
1301
1301
1302
1302
let rustc_installer = builder. ensure ( Rustc {
1303
1303
compiler : builder. compiler ( stage, target) ,
0 commit comments