@@ -1482,7 +1482,7 @@ impl Step for ErrorIndex {
14821482 // error_index_generator depends on librustdoc. Use the compiler that
14831483 // is normally used to build rustdoc for other tests (like compiletest
14841484 // tests in src/test/rustdoc) so that it shares the same artifacts.
1485- let compiler = run. builder . compiler_for ( run. builder . top_stage , run. target , run . target ) ;
1485+ let compiler = run. builder . compiler ( run. builder . top_stage , run. builder . config . build ) ;
14861486 run. builder . ensure ( ErrorIndex { compiler } ) ;
14871487 }
14881488
@@ -1499,19 +1499,16 @@ impl Step for ErrorIndex {
14991499 t ! ( fs:: create_dir_all( & dir) ) ;
15001500 let output = dir. join ( "error-index.md" ) ;
15011501
1502- let mut tool = tool:: ErrorIndex :: command ( builder, compiler ) ;
1502+ let mut tool = tool:: ErrorIndex :: command ( builder) ;
15031503 tool. arg ( "markdown" ) . arg ( & output) ;
15041504
1505- // Use the rustdoc that was built by self.compiler. This copy of
1506- // rustdoc is shared with other tests (like compiletest tests in
1507- // src/test/rustdoc). This helps avoid building rustdoc multiple
1508- // times.
1509- let rustdoc_compiler = builder. compiler ( builder. top_stage , builder. config . build ) ;
1510- builder. info ( & format ! ( "Testing error-index stage{}" , rustdoc_compiler. stage) ) ;
1505+ builder. info ( & format ! ( "Testing error-index stage{}" , compiler. stage) ) ;
15111506 let _time = util:: timeit ( & builder) ;
15121507 builder. run_quiet ( & mut tool) ;
1513- builder. ensure ( compile:: Std { compiler : rustdoc_compiler, target : rustdoc_compiler. host } ) ;
1514- markdown_test ( builder, rustdoc_compiler, & output) ;
1508+ // The tests themselves need to link to std, so make sure it is
1509+ // available.
1510+ builder. ensure ( compile:: Std { compiler, target : compiler. host } ) ;
1511+ markdown_test ( builder, compiler, & output) ;
15151512 }
15161513}
15171514
0 commit comments