File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -3660,18 +3660,6 @@ impl Step for CodegenGCC {
3660
3660
}
3661
3661
}
3662
3662
3663
- /// Get a build compiler that can be used to test the standard library (i.e. its stage will
3664
- /// correspond to the stage that we want to test).
3665
- fn get_test_build_compiler_for_std ( builder : & Builder < ' _ > ) -> Compiler {
3666
- if builder. top_stage == 0 {
3667
- eprintln ! (
3668
- "ERROR: cannot run tests on stage 0. `build.compiletest-allow-stage0` only works for compiletest test suites."
3669
- ) ;
3670
- exit ! ( 1 ) ;
3671
- }
3672
- builder. compiler ( builder. top_stage , builder. host_target )
3673
- }
3674
-
3675
3663
/// Test step that does two things:
3676
3664
/// - Runs `cargo test` for the `src/tools/test-float-parse` tool.
3677
3665
/// - Invokes the `test-float-parse` tool to test the standard library's
@@ -3701,10 +3689,8 @@ impl Step for TestFloatParse {
3701
3689
}
3702
3690
3703
3691
fn make_run ( run : RunConfig < ' _ > ) {
3704
- run. builder . ensure ( Self {
3705
- build_compiler : get_test_build_compiler_for_std ( run. builder ) ,
3706
- target : run. target ,
3707
- } ) ;
3692
+ run. builder
3693
+ . ensure ( Self { build_compiler : get_compiler_to_test ( run. builder ) , target : run. target } ) ;
3708
3694
}
3709
3695
3710
3696
fn run ( self , builder : & Builder < ' _ > ) {
You can’t perform that action at this time.
0 commit comments