@@ -45,7 +45,7 @@ pub fn rustbook_src(build: &Build, target: &str, name: &str, src: &Path) {
4545 t ! ( fs:: create_dir_all( & out) ) ;
4646
4747 let out = out. join ( name) ;
48- let compiler = Compiler :: new ( 0 , & build. config . build ) ;
48+ let compiler = Compiler :: new ( 0 , & build. build ) ;
4949 let src = src. join ( name) ;
5050 let index = out. join ( "index.html" ) ;
5151 let rustbook = build. tool ( & compiler, "rustbook" ) ;
@@ -95,7 +95,7 @@ pub fn book(build: &Build, target: &str, name: &str) {
9595fn invoke_rustdoc ( build : & Build , target : & str , markdown : & str ) {
9696 let out = build. doc_out ( target) ;
9797
98- let compiler = Compiler :: new ( 0 , & build. config . build ) ;
98+ let compiler = Compiler :: new ( 0 , & build. build ) ;
9999
100100 let path = build. src . join ( "src/doc" ) . join ( markdown) ;
101101
@@ -150,7 +150,7 @@ pub fn standalone(build: &Build, target: &str) {
150150 let out = build. doc_out ( target) ;
151151 t ! ( fs:: create_dir_all( & out) ) ;
152152
153- let compiler = Compiler :: new ( 0 , & build. config . build ) ;
153+ let compiler = Compiler :: new ( 0 , & build. build ) ;
154154
155155 let favicon = build. src . join ( "src/doc/favicon.inc" ) ;
156156 let footer = build. src . join ( "src/doc/footer.inc" ) ;
@@ -217,7 +217,7 @@ pub fn std(build: &Build, stage: u32, target: &str) {
217217 println ! ( "Documenting stage{} std ({})" , stage, target) ;
218218 let out = build. doc_out ( target) ;
219219 t ! ( fs:: create_dir_all( & out) ) ;
220- let compiler = Compiler :: new ( stage, & build. config . build ) ;
220+ let compiler = Compiler :: new ( stage, & build. build ) ;
221221 let compiler = if build. force_use_stage1 ( & compiler, target) {
222222 Compiler :: new ( 1 , compiler. host )
223223 } else {
@@ -276,7 +276,7 @@ pub fn test(build: &Build, stage: u32, target: &str) {
276276 println ! ( "Documenting stage{} test ({})" , stage, target) ;
277277 let out = build. doc_out ( target) ;
278278 t ! ( fs:: create_dir_all( & out) ) ;
279- let compiler = Compiler :: new ( stage, & build. config . build ) ;
279+ let compiler = Compiler :: new ( stage, & build. build ) ;
280280 let compiler = if build. force_use_stage1 ( & compiler, target) {
281281 Compiler :: new ( 1 , compiler. host )
282282 } else {
@@ -306,7 +306,7 @@ pub fn rustc(build: &Build, stage: u32, target: &str) {
306306 println ! ( "Documenting stage{} compiler ({})" , stage, target) ;
307307 let out = build. doc_out ( target) ;
308308 t ! ( fs:: create_dir_all( & out) ) ;
309- let compiler = Compiler :: new ( stage, & build. config . build ) ;
309+ let compiler = Compiler :: new ( stage, & build. build ) ;
310310 let compiler = if build. force_use_stage1 ( & compiler, target) {
311311 Compiler :: new ( 1 , compiler. host )
312312 } else {
@@ -351,13 +351,13 @@ pub fn error_index(build: &Build, target: &str) {
351351 println ! ( "Documenting error index ({})" , target) ;
352352 let out = build. doc_out ( target) ;
353353 t ! ( fs:: create_dir_all( & out) ) ;
354- let compiler = Compiler :: new ( 0 , & build. config . build ) ;
354+ let compiler = Compiler :: new ( 0 , & build. build ) ;
355355 let mut index = build. tool_cmd ( & compiler, "error_index_generator" ) ;
356356 index. arg ( "html" ) ;
357357 index. arg ( out. join ( "error-index.html" ) ) ;
358358
359359 // FIXME: shouldn't have to pass this env var
360- index. env ( "CFG_BUILD" , & build. config . build ) ;
360+ index. env ( "CFG_BUILD" , & build. build ) ;
361361
362362 build. run ( & mut index) ;
363363}
@@ -367,7 +367,7 @@ pub fn unstable_book_gen(build: &Build, target: &str) {
367367 let out = build. md_doc_out ( target) . join ( "unstable-book" ) ;
368368 t ! ( fs:: create_dir_all( & out) ) ;
369369 t ! ( fs:: remove_dir_all( & out) ) ;
370- let compiler = Compiler :: new ( 0 , & build. config . build ) ;
370+ let compiler = Compiler :: new ( 0 , & build. build ) ;
371371 let mut cmd = build. tool_cmd ( & compiler, "unstable-book-gen" ) ;
372372 cmd. arg ( build. src . join ( "src" ) ) ;
373373 cmd. arg ( out) ;
0 commit comments