@@ -115,7 +115,7 @@ impl Step for JsonDocs {
115
115
/// Builds the `rust-docs-json` installer component.
116
116
fn run ( self , builder : & Builder < ' _ > ) -> Option < GeneratedTarball > {
117
117
let target = self . target ;
118
- builder. ensure ( crate :: core:: build_steps:: doc:: Std :: from_build_compiler (
118
+ let directory = builder. ensure ( crate :: core:: build_steps:: doc:: Std :: from_build_compiler (
119
119
self . build_compiler ,
120
120
target,
121
121
DocumentationFormat :: Json ,
@@ -126,7 +126,7 @@ impl Step for JsonDocs {
126
126
let mut tarball = Tarball :: new ( builder, "rust-docs-json" , & target. triple ) ;
127
127
tarball. set_product_name ( "Rust Documentation In JSON Format" ) ;
128
128
tarball. is_preview ( true ) ;
129
- tarball. add_bulk_dir ( builder . json_doc_out ( target ) , dest) ;
129
+ tarball. add_bulk_dir ( directory , dest) ;
130
130
Some ( tarball. generate ( ) )
131
131
}
132
132
}
@@ -1589,19 +1589,21 @@ impl Step for Extended {
1589
1589
} ;
1590
1590
}
1591
1591
1592
+ let target_compiler = builder. compiler ( stage, target) ;
1592
1593
// When rust-std package split from rustc, we needed to ensure that during
1593
1594
// upgrades rustc was upgraded before rust-std. To avoid rustc clobbering
1594
1595
// the std files during uninstall. To do this ensure that rustc comes
1595
1596
// before rust-std in the list below.
1596
- tarballs. push ( builder. ensure ( Rustc { compiler : builder . compiler ( stage , target ) } ) ) ;
1597
+ tarballs. push ( builder. ensure ( Rustc { compiler : target_compiler } ) ) ;
1597
1598
tarballs. push ( builder. ensure ( Std { compiler, target } ) . expect ( "missing std" ) ) ;
1598
1599
1599
1600
if target. is_windows_gnu ( ) {
1600
1601
tarballs. push ( builder. ensure ( Mingw { host : target } ) . expect ( "missing mingw" ) ) ;
1601
1602
}
1602
1603
1603
1604
add_component ! ( "rust-docs" => Docs { host: target } ) ;
1604
- add_component ! ( "rust-json-docs" => JsonDocs { build_compiler: compiler, target } ) ;
1605
+ // Std stage N is documented with compiler stage N
1606
+ add_component ! ( "rust-json-docs" => JsonDocs { build_compiler: target_compiler, target } ) ;
1605
1607
add_component ! ( "cargo" => Cargo { build_compiler: compiler, target } ) ;
1606
1608
add_component ! ( "rustfmt" => Rustfmt { build_compiler: compiler, target } ) ;
1607
1609
add_component ! ( "rust-analyzer" => RustAnalyzer { build_compiler: compiler, target } ) ;
0 commit comments