@@ -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
}
@@ -1575,19 +1575,21 @@ impl Step for Extended {
1575
1575
} ;
1576
1576
}
1577
1577
1578
+ let target_compiler = builder. compiler ( stage, target) ;
1578
1579
// When rust-std package split from rustc, we needed to ensure that during
1579
1580
// upgrades rustc was upgraded before rust-std. To avoid rustc clobbering
1580
1581
// the std files during uninstall. To do this ensure that rustc comes
1581
1582
// before rust-std in the list below.
1582
- tarballs. push ( builder. ensure ( Rustc { compiler : builder . compiler ( stage , target ) } ) ) ;
1583
+ tarballs. push ( builder. ensure ( Rustc { compiler : target_compiler } ) ) ;
1583
1584
tarballs. push ( builder. ensure ( Std { compiler, target } ) . expect ( "missing std" ) ) ;
1584
1585
1585
1586
if target. is_windows_gnu ( ) {
1586
1587
tarballs. push ( builder. ensure ( Mingw { host : target } ) . expect ( "missing mingw" ) ) ;
1587
1588
}
1588
1589
1589
1590
add_component ! ( "rust-docs" => Docs { host: target } ) ;
1590
- add_component ! ( "rust-json-docs" => JsonDocs { build_compiler: compiler, target } ) ;
1591
+ // Std stage N is documented with compiler stage N
1592
+ add_component ! ( "rust-json-docs" => JsonDocs { build_compiler: target_compiler, target } ) ;
1591
1593
add_component ! ( "cargo" => Cargo { build_compiler: compiler, target } ) ;
1592
1594
add_component ! ( "rustfmt" => Rustfmt { build_compiler: compiler, target } ) ;
1593
1595
add_component ! ( "rust-analyzer" => RustAnalyzer { build_compiler: compiler, target } ) ;
0 commit comments