@@ -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 } ) ;
@@ -2177,7 +2177,7 @@ impl BookTest {
2177
2177
fn run_ext_doc ( self , builder : & Builder < ' _ > ) {
2178
2178
let compiler = self . compiler ;
2179
2179
2180
- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
2180
+ builder. std ( compiler, compiler. host ) ;
2181
2181
2182
2182
// mdbook just executes a binary named "rustdoc", so we need to update
2183
2183
// PATH so that it points to our rustdoc.
@@ -2263,7 +2263,7 @@ impl BookTest {
2263
2263
let compiler = self . compiler ;
2264
2264
let host = self . compiler . host ;
2265
2265
2266
- builder. ensure ( compile :: Std :: new ( compiler, host) ) ;
2266
+ builder. std ( compiler, host) ;
2267
2267
2268
2268
let _guard =
2269
2269
builder. msg ( Kind :: Test , compiler. stage , format ! ( "book {}" , self . name) , host, host) ;
@@ -2410,7 +2410,7 @@ impl Step for ErrorIndex {
2410
2410
drop ( guard) ;
2411
2411
// The tests themselves need to link to std, so make sure it is
2412
2412
// available.
2413
- builder. ensure ( compile :: Std :: new ( compiler, compiler. host ) ) ;
2413
+ builder. std ( compiler, compiler. host ) ;
2414
2414
markdown_test ( builder, compiler, & output) ;
2415
2415
}
2416
2416
}
@@ -2473,7 +2473,7 @@ impl Step for CrateLibrustc {
2473
2473
}
2474
2474
2475
2475
fn run ( self , builder : & Builder < ' _ > ) {
2476
- builder. ensure ( compile :: Std :: new ( self . compiler , self . target ) ) ;
2476
+ builder. std ( self . compiler , self . target ) ;
2477
2477
2478
2478
// To actually run the tests, delegate to a copy of the `Crate` step.
2479
2479
builder. ensure ( Crate {
@@ -2641,7 +2641,7 @@ impl Step for Crate {
2641
2641
2642
2642
// Prepare sysroot
2643
2643
// 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 ) ) ;
2645
2645
2646
2646
// If we're not doing a full bootstrap but we're testing a stage2
2647
2647
// version of libstd, then what we're actually testing is the libstd
@@ -2767,7 +2767,7 @@ impl Step for CrateRustdoc {
2767
2767
// using `download-rustc`, the rustc_private artifacts may be in a *different sysroot* from
2768
2768
// the target rustdoc (`ci-rustc-sysroot` vs `stage2`). In that case, we need to ensure this
2769
2769
// explicitly to make sure it ends up in the stage2 sysroot.
2770
- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
2770
+ builder. std ( compiler, target) ;
2771
2771
builder. ensure ( compile:: Rustc :: new ( compiler, target) ) ;
2772
2772
2773
2773
let mut cargo = tool:: prepare_tool_cargo (
@@ -2911,7 +2911,7 @@ impl Step for RemoteCopyLibs {
2911
2911
return ;
2912
2912
}
2913
2913
2914
- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
2914
+ builder. std ( compiler, target) ;
2915
2915
2916
2916
builder. info ( & format ! ( "REMOTE copy libs to emulator ({target})" ) ) ;
2917
2917
@@ -3101,7 +3101,7 @@ impl Step for TierCheck {
3101
3101
3102
3102
/// Tests the Platform Support page in the rustc book.
3103
3103
fn run ( self , builder : & Builder < ' _ > ) {
3104
- builder. ensure ( compile :: Std :: new ( self . compiler , self . compiler . host ) ) ;
3104
+ builder. std ( self . compiler , self . compiler . host ) ;
3105
3105
let mut cargo = tool:: prepare_tool_cargo (
3106
3106
builder,
3107
3107
self . compiler ,
@@ -3334,7 +3334,7 @@ impl Step for CodegenCranelift {
3334
3334
let compiler = self . compiler ;
3335
3335
let target = self . target ;
3336
3336
3337
- builder. ensure ( compile :: Std :: new ( compiler, target) ) ;
3337
+ builder. std ( compiler, target) ;
3338
3338
3339
3339
// If we're not doing a full bootstrap but we're testing a stage2
3340
3340
// version of libstd, then what we're actually testing is the libstd
0 commit comments