@@ -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 } ) ;
@@ -2178,7 +2178,7 @@ impl BookTest {
21782178 fn run_ext_doc ( self , builder : & Builder < ' _ > ) {
21792179 let compiler = self . compiler ;
21802180
2181- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
2181+ builder. std ( compiler, compiler. host ) ;
21822182
21832183 // mdbook just executes a binary named "rustdoc", so we need to update
21842184 // PATH so that it points to our rustdoc.
@@ -2264,7 +2264,7 @@ impl BookTest {
22642264 let compiler = self . compiler ;
22652265 let host = self . compiler . host ;
22662266
2267- builder. ensure ( compile :: Std :: new ( compiler, host) ) ;
2267+ builder. std ( compiler, host) ;
22682268
22692269 let _guard =
22702270 builder. msg ( Kind :: Test , compiler. stage , format ! ( "book {}" , self . name) , host, host) ;
@@ -2411,7 +2411,7 @@ impl Step for ErrorIndex {
24112411 drop ( guard) ;
24122412 // The tests themselves need to link to std, so make sure it is
24132413 // available.
2414- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
2414+ builder. std ( compiler, compiler. host ) ;
24152415 markdown_test ( builder, compiler, & output) ;
24162416 }
24172417}
@@ -2474,7 +2474,7 @@ impl Step for CrateLibrustc {
24742474 }
24752475
24762476 fn run ( self , builder : & Builder < ' _ > ) {
2477- builder. ensure ( compile :: Std :: new ( self . compiler , self . target ) ) ;
2477+ builder. std ( self . compiler , self . target ) ;
24782478
24792479 // To actually run the tests, delegate to a copy of the `Crate` step.
24802480 builder. ensure ( Crate {
@@ -2642,7 +2642,7 @@ impl Step for Crate {
26422642
26432643 // Prepare sysroot
26442644 // See [field@compile::Std::force_recompile].
2645- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) . force_recompile ( true ) ) ;
2645+ builder. ensure ( Std :: new ( compiler, compiler. host ) . force_recompile ( true ) ) ;
26462646
26472647 // If we're not doing a full bootstrap but we're testing a stage2
26482648 // version of libstd, then what we're actually testing is the libstd
@@ -2768,7 +2768,7 @@ impl Step for CrateRustdoc {
27682768 // using `download-rustc`, the rustc_private artifacts may be in a *different sysroot* from
27692769 // the target rustdoc (`ci-rustc-sysroot` vs `stage2`). In that case, we need to ensure this
27702770 // explicitly to make sure it ends up in the stage2 sysroot.
2771- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
2771+ builder. std ( compiler, target) ;
27722772 builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
27732773
27742774 let mut cargo = tool:: prepare_tool_cargo (
@@ -2912,7 +2912,7 @@ impl Step for RemoteCopyLibs {
29122912 return ;
29132913 }
29142914
2915- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
2915+ builder. std ( compiler, target) ;
29162916
29172917 builder. info ( & format ! ( "REMOTE copy libs to emulator ({target})" ) ) ;
29182918
@@ -3102,7 +3102,7 @@ impl Step for TierCheck {
31023102
31033103 /// Tests the Platform Support page in the rustc book.
31043104 fn run ( self , builder : & Builder < ' _ > ) {
3105- builder. ensure ( compile :: Std :: new ( self . compiler , self . compiler . host ) ) ;
3105+ builder. std ( self . compiler , self . compiler . host ) ;
31063106 let mut cargo = tool:: prepare_tool_cargo (
31073107 builder,
31083108 self . compiler ,
@@ -3335,7 +3335,7 @@ impl Step for CodegenCranelift {
33353335 let compiler = self . compiler ;
33363336 let target = self . target ;
33373337
3338- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
3338+ builder. std ( compiler, target) ;
33393339
33403340 // If we're not doing a full bootstrap but we're testing a stage2
33413341 // version of libstd, then what we're actually testing is the libstd
0 commit comments