Skip to content

Commit 0f2fc03

Browse files
committed
Remove stage0 checking
1 parent e759b97 commit 0f2fc03

File tree

1 file changed

+2
-16
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+2
-16
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3691,18 +3691,6 @@ impl Step for CodegenGCC {
36913691
}
36923692
}
36933693

3694-
/// Get a build compiler that can be used to test the standard library (i.e. its stage will
3695-
/// correspond to the stage that we want to test).
3696-
fn get_test_build_compiler_for_std(builder: &Builder<'_>) -> Compiler {
3697-
if builder.top_stage == 0 {
3698-
eprintln!(
3699-
"ERROR: cannot run tests on stage 0. `build.compiletest-allow-stage0` only works for compiletest test suites."
3700-
);
3701-
exit!(1);
3702-
}
3703-
builder.compiler(builder.top_stage, builder.host_target)
3704-
}
3705-
37063694
/// Test step that does two things:
37073695
/// - Runs `cargo test` for the `src/tools/test-float-parse` tool.
37083696
/// - Invokes the `test-float-parse` tool to test the standard library's
@@ -3732,10 +3720,8 @@ impl Step for TestFloatParse {
37323720
}
37333721

37343722
fn make_run(run: RunConfig<'_>) {
3735-
run.builder.ensure(Self {
3736-
build_compiler: get_test_build_compiler_for_std(run.builder),
3737-
target: run.target,
3738-
});
3723+
run.builder
3724+
.ensure(Self { build_compiler: get_compiler_to_test(run.builder), target: run.target });
37393725
}
37403726

37413727
fn run(self, builder: &Builder<'_>) {

0 commit comments

Comments
 (0)