@@ -10,7 +10,7 @@ use std::{env, fs, iter};
10
10
11
11
use clap_complete:: shells;
12
12
13
- use crate :: core:: build_steps:: compile:: run_cargo;
13
+ use crate :: core:: build_steps:: compile:: { Std , run_cargo} ;
14
14
use crate :: core:: build_steps:: doc:: DocumentationFormat ;
15
15
use crate :: core:: build_steps:: gcc:: { Gcc , add_cg_gcc_cargo_flags} ;
16
16
use crate :: core:: build_steps:: llvm:: get_llvm_version;
@@ -544,7 +544,7 @@ impl Step for Miri {
544
544
// We also need sysroots, for Miri and for the host (the latter for build scripts).
545
545
// This is for the tests so everything is done with the target compiler.
546
546
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) ;
548
548
let host_sysroot = builder. sysroot ( target_compiler) ;
549
549
550
550
// Miri has its own "target dir" for ui test dependencies. Make sure it gets cleared when
@@ -709,7 +709,7 @@ impl Step for CompiletestTest {
709
709
710
710
// We need `ToolStd` for the locally-built sysroot because
711
711
// compiletest uses unstable features of the `test` crate.
712
- builder. ensure ( compile :: Std :: new ( compiler, host) ) ;
712
+ builder. std ( compiler, host) ;
713
713
let mut cargo = tool:: prepare_tool_cargo (
714
714
builder,
715
715
compiler,
@@ -1009,7 +1009,7 @@ impl Step for RustdocGUI {
1009
1009
}
1010
1010
1011
1011
fn run ( self , builder : & Builder < ' _ > ) {
1012
- builder. ensure ( compile :: Std :: new ( self . compiler , self . target ) ) ;
1012
+ builder. std ( self . compiler , self . target ) ;
1013
1013
1014
1014
let mut cmd = builder. tool_cmd ( Tool :: RustdocGUITest ) ;
1015
1015
@@ -1634,15 +1634,15 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1634
1634
if suite == "mir-opt" {
1635
1635
builder. ensure ( compile:: Std :: new ( compiler, compiler. host ) . is_for_mir_opt_tests ( true ) ) ;
1636
1636
} else {
1637
- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
1637
+ builder. std ( compiler, compiler. host ) ;
1638
1638
}
1639
1639
1640
1640
let mut cmd = builder. tool_cmd ( Tool :: Compiletest ) ;
1641
1641
1642
1642
if suite == "mir-opt" {
1643
1643
builder. ensure ( compile:: Std :: new ( compiler, target) . is_for_mir_opt_tests ( true ) ) ;
1644
1644
} else {
1645
- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
1645
+ builder. std ( compiler, target) ;
1646
1646
}
1647
1647
1648
1648
builder. ensure ( RemoteCopyLibs { compiler, target } ) ;
@@ -2178,7 +2178,7 @@ impl BookTest {
2178
2178
fn run_ext_doc ( self , builder : & Builder < ' _ > ) {
2179
2179
let compiler = self . compiler ;
2180
2180
2181
- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
2181
+ builder. std ( compiler, compiler. host ) ;
2182
2182
2183
2183
// mdbook just executes a binary named "rustdoc", so we need to update
2184
2184
// PATH so that it points to our rustdoc.
@@ -2264,7 +2264,7 @@ impl BookTest {
2264
2264
let compiler = self . compiler ;
2265
2265
let host = self . compiler . host ;
2266
2266
2267
- builder. ensure ( compile :: Std :: new ( compiler, host) ) ;
2267
+ builder. std ( compiler, host) ;
2268
2268
2269
2269
let _guard =
2270
2270
builder. msg ( Kind :: Test , compiler. stage , format ! ( "book {}" , self . name) , host, host) ;
@@ -2411,7 +2411,7 @@ impl Step for ErrorIndex {
2411
2411
drop ( guard) ;
2412
2412
// The tests themselves need to link to std, so make sure it is
2413
2413
// available.
2414
- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
2414
+ builder. std ( compiler, compiler. host ) ;
2415
2415
markdown_test ( builder, compiler, & output) ;
2416
2416
}
2417
2417
}
@@ -2474,7 +2474,7 @@ impl Step for CrateLibrustc {
2474
2474
}
2475
2475
2476
2476
fn run ( self , builder : & Builder < ' _ > ) {
2477
- builder. ensure ( compile :: Std :: new ( self . compiler , self . target ) ) ;
2477
+ builder. std ( self . compiler , self . target ) ;
2478
2478
2479
2479
// To actually run the tests, delegate to a copy of the `Crate` step.
2480
2480
builder. ensure ( Crate {
@@ -2642,7 +2642,7 @@ impl Step for Crate {
2642
2642
2643
2643
// Prepare sysroot
2644
2644
// 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 ) ) ;
2646
2646
2647
2647
// If we're not doing a full bootstrap but we're testing a stage2
2648
2648
// version of libstd, then what we're actually testing is the libstd
@@ -2768,7 +2768,7 @@ impl Step for CrateRustdoc {
2768
2768
// using `download-rustc`, the rustc_private artifacts may be in a *different sysroot* from
2769
2769
// the target rustdoc (`ci-rustc-sysroot` vs `stage2`). In that case, we need to ensure this
2770
2770
// explicitly to make sure it ends up in the stage2 sysroot.
2771
- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
2771
+ builder. std ( compiler, target) ;
2772
2772
builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
2773
2773
2774
2774
let mut cargo = tool:: prepare_tool_cargo (
@@ -2912,7 +2912,7 @@ impl Step for RemoteCopyLibs {
2912
2912
return ;
2913
2913
}
2914
2914
2915
- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
2915
+ builder. std ( compiler, target) ;
2916
2916
2917
2917
builder. info ( & format ! ( "REMOTE copy libs to emulator ({target})" ) ) ;
2918
2918
@@ -3102,7 +3102,7 @@ impl Step for TierCheck {
3102
3102
3103
3103
/// Tests the Platform Support page in the rustc book.
3104
3104
fn run ( self , builder : & Builder < ' _ > ) {
3105
- builder. ensure ( compile :: Std :: new ( self . compiler , self . compiler . host ) ) ;
3105
+ builder. std ( self . compiler , self . compiler . host ) ;
3106
3106
let mut cargo = tool:: prepare_tool_cargo (
3107
3107
builder,
3108
3108
self . compiler ,
@@ -3335,7 +3335,7 @@ impl Step for CodegenCranelift {
3335
3335
let compiler = self . compiler ;
3336
3336
let target = self . target ;
3337
3337
3338
- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
3338
+ builder. std ( compiler, target) ;
3339
3339
3340
3340
// If we're not doing a full bootstrap but we're testing a stage2
3341
3341
// version of libstd, then what we're actually testing is the libstd
0 commit comments