@@ -1173,7 +1173,7 @@ impl Step for PlainSourceTarball {
11731173
11741174#[ derive( Debug , PartialOrd , Ord , Clone , Hash , PartialEq , Eq ) ]
11751175pub struct Cargo {
1176- pub compiler : Compiler ,
1176+ pub build_compiler : Compiler ,
11771177 pub target : TargetSelection ,
11781178}
11791179
@@ -1189,7 +1189,7 @@ impl Step for Cargo {
11891189
11901190 fn make_run ( run : RunConfig < ' _ > ) {
11911191 run. builder . ensure ( Cargo {
1192- compiler : run. builder . compiler_for (
1192+ build_compiler : run. builder . compiler_for (
11931193 run. builder . top_stage ,
11941194 run. builder . config . host_target ,
11951195 run. target ,
@@ -1199,12 +1199,10 @@ impl Step for Cargo {
11991199 }
12001200
12011201 fn run ( self , builder : & Builder < ' _ > ) -> Option < GeneratedTarball > {
1202- let compiler = self . compiler ;
1202+ let build_compiler = self . build_compiler ;
12031203 let target = self . target ;
12041204
1205- builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
1206-
1207- let cargo = builder. ensure ( tool:: Cargo { compiler, target } ) ;
1205+ let cargo = builder. ensure ( tool:: Cargo :: from_build_compiler ( build_compiler, target) ) ;
12081206 let src = builder. src . join ( "src/tools/cargo" ) ;
12091207 let etc = src. join ( "src/etc" ) ;
12101208
@@ -1563,7 +1561,7 @@ impl Step for Extended {
15631561
15641562 add_component ! ( "rust-docs" => Docs { host: target } ) ;
15651563 add_component ! ( "rust-json-docs" => JsonDocs { host: target } ) ;
1566- add_component ! ( "cargo" => Cargo { compiler, target } ) ;
1564+ add_component ! ( "cargo" => Cargo { build_compiler : compiler, target } ) ;
15671565 add_component ! ( "rustfmt" => Rustfmt { build_compiler: compiler, target } ) ;
15681566 add_component ! ( "rust-analyzer" => RustAnalyzer { build_compiler: compiler, target } ) ;
15691567 add_component ! ( "llvm-components" => LlvmTools { target } ) ;
0 commit comments