@@ -10,7 +10,7 @@ use std::{env, fs, iter};
1010
1111use clap_complete:: shells;
1212
13- use crate :: core:: build_steps:: compile:: run_cargo;
13+ use crate :: core:: build_steps:: compile:: { Std , run_cargo} ;
1414use crate :: core:: build_steps:: doc:: DocumentationFormat ;
1515use crate :: core:: build_steps:: gcc:: { Gcc , add_cg_gcc_cargo_flags} ;
1616use crate :: core:: build_steps:: llvm:: get_llvm_version;
@@ -544,7 +544,7 @@ impl Step for Miri {
544544 // We also need sysroots, for Miri and for the host (the latter for build scripts).
545545 // This is for the tests so everything is done with the target compiler.
546546 let miri_sysroot = Miri :: build_miri_sysroot ( builder, target_compiler, target) ;
547- builder. ensure ( compile :: Std :: new ( target_compiler, host) ) ;
547+ builder. std ( target_compiler, host) ;
548548 let host_sysroot = builder. sysroot ( target_compiler) ;
549549
550550 // Miri has its own "target dir" for ui test dependencies. Make sure it gets cleared when
@@ -709,7 +709,7 @@ impl Step for CompiletestTest {
709709
710710 // We need `ToolStd` for the locally-built sysroot because
711711 // compiletest uses unstable features of the `test` crate.
712- builder. ensure ( compile :: Std :: new ( compiler, host) ) ;
712+ builder. std ( compiler, host) ;
713713 let mut cargo = tool:: prepare_tool_cargo (
714714 builder,
715715 compiler,
@@ -1009,7 +1009,7 @@ impl Step for RustdocGUI {
10091009 }
10101010
10111011 fn run ( self , builder : & Builder < ' _ > ) {
1012- builder. ensure ( compile :: Std :: new ( self . compiler , self . target ) ) ;
1012+ builder. std ( self . compiler , self . target ) ;
10131013
10141014 let mut cmd = builder. tool_cmd ( Tool :: RustdocGUITest ) ;
10151015
@@ -1634,15 +1634,15 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
16341634 if suite == "mir-opt" {
16351635 builder. ensure ( compile:: Std :: new ( compiler, compiler. host ) . is_for_mir_opt_tests ( true ) ) ;
16361636 } else {
1637- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
1637+ builder. std ( compiler, compiler. host ) ;
16381638 }
16391639
16401640 let mut cmd = builder. tool_cmd ( Tool :: Compiletest ) ;
16411641
16421642 if suite == "mir-opt" {
16431643 builder. ensure ( compile:: Std :: new ( compiler, target) . is_for_mir_opt_tests ( true ) ) ;
16441644 } else {
1645- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
1645+ builder. std ( compiler, target) ;
16461646 }
16471647
16481648 builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
@@ -2177,7 +2177,7 @@ impl BookTest {
21772177 fn run_ext_doc ( self , builder : & Builder < ' _ > ) {
21782178 let compiler = self . compiler ;
21792179
2180- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
2180+ builder. std ( compiler, compiler. host ) ;
21812181
21822182 // mdbook just executes a binary named "rustdoc", so we need to update
21832183 // PATH so that it points to our rustdoc.
@@ -2263,7 +2263,7 @@ impl BookTest {
22632263 let compiler = self . compiler ;
22642264 let host = self . compiler . host ;
22652265
2266- builder. ensure ( compile :: Std :: new ( compiler, host) ) ;
2266+ builder. std ( compiler, host) ;
22672267
22682268 let _guard =
22692269 builder. msg ( Kind :: Test , compiler. stage , format ! ( "book {}" , self . name) , host, host) ;
@@ -2410,7 +2410,7 @@ impl Step for ErrorIndex {
24102410 drop ( guard) ;
24112411 // The tests themselves need to link to std, so make sure it is
24122412 // available.
2413- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
2413+ builder. std ( compiler, compiler. host ) ;
24142414 markdown_test ( builder, compiler, & output) ;
24152415 }
24162416}
@@ -2473,7 +2473,7 @@ impl Step for CrateLibrustc {
24732473 }
24742474
24752475 fn run ( self , builder : & Builder < ' _ > ) {
2476- builder. ensure ( compile :: Std :: new ( self . compiler , self . target ) ) ;
2476+ builder. std ( self . compiler , self . target ) ;
24772477
24782478 // To actually run the tests, delegate to a copy of the `Crate` step.
24792479 builder. ensure ( Crate {
@@ -2641,7 +2641,7 @@ impl Step for Crate {
26412641
26422642 // Prepare sysroot
26432643 // See [field@compile::Std::force_recompile].
2644- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) . force_recompile ( true ) ) ;
2644+ builder. ensure ( Std :: new ( compiler, compiler. host ) . force_recompile ( true ) ) ;
26452645
26462646 // If we're not doing a full bootstrap but we're testing a stage2
26472647 // version of libstd, then what we're actually testing is the libstd
@@ -2767,7 +2767,7 @@ impl Step for CrateRustdoc {
27672767 // using `download-rustc`, the rustc_private artifacts may be in a *different sysroot* from
27682768 // the target rustdoc (`ci-rustc-sysroot` vs `stage2`). In that case, we need to ensure this
27692769 // explicitly to make sure it ends up in the stage2 sysroot.
2770- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
2770+ builder. std ( compiler, target) ;
27712771 builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
27722772
27732773 let mut cargo = tool:: prepare_tool_cargo (
@@ -2911,7 +2911,7 @@ impl Step for RemoteCopyLibs {
29112911 return ;
29122912 }
29132913
2914- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
2914+ builder. std ( compiler, target) ;
29152915
29162916 builder. info ( & format ! ( "REMOTE copy libs to emulator ({target})" ) ) ;
29172917
@@ -3101,7 +3101,7 @@ impl Step for TierCheck {
31013101
31023102 /// Tests the Platform Support page in the rustc book.
31033103 fn run ( self , builder : & Builder < ' _ > ) {
3104- builder. ensure ( compile :: Std :: new ( self . compiler , self . compiler . host ) ) ;
3104+ builder. std ( self . compiler , self . compiler . host ) ;
31053105 let mut cargo = tool:: prepare_tool_cargo (
31063106 builder,
31073107 self . compiler ,
@@ -3334,7 +3334,7 @@ impl Step for CodegenCranelift {
33343334 let compiler = self . compiler ;
33353335 let target = self . target ;
33363336
3337- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
3337+ builder. std ( compiler, target) ;
33383338
33393339 // If we're not doing a full bootstrap but we're testing a stage2
33403340 // version of libstd, then what we're actually testing is the libstd
0 commit comments