@@ -1482,7 +1482,7 @@ impl Step for ErrorIndex {
1482
1482
// error_index_generator depends on librustdoc. Use the compiler that
1483
1483
// is normally used to build rustdoc for other tests (like compiletest
1484
1484
// 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 ) ;
1486
1486
run. builder . ensure ( ErrorIndex { compiler } ) ;
1487
1487
}
1488
1488
@@ -1499,19 +1499,16 @@ impl Step for ErrorIndex {
1499
1499
t ! ( fs:: create_dir_all( & dir) ) ;
1500
1500
let output = dir. join ( "error-index.md" ) ;
1501
1501
1502
- let mut tool = tool:: ErrorIndex :: command ( builder, compiler ) ;
1502
+ let mut tool = tool:: ErrorIndex :: command ( builder) ;
1503
1503
tool. arg ( "markdown" ) . arg ( & output) ;
1504
1504
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) ) ;
1511
1506
let _time = util:: timeit ( & builder) ;
1512
1507
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) ;
1515
1512
}
1516
1513
}
1517
1514
0 commit comments