Skip to content

Commit df99001

Browse files
committed
Remove stage0 checking
1 parent 2f1bbc6 commit df99001

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
@@ -3693,18 +3693,6 @@ impl Step for CodegenGCC {
36933693
}
36943694
}
36953695

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

37363724
fn make_run(run: RunConfig<'_>) {
3737-
run.builder.ensure(Self {
3738-
build_compiler: get_test_build_compiler_for_std(run.builder),
3739-
target: run.target,
3740-
});
3725+
run.builder
3726+
.ensure(Self { build_compiler: get_compiler_to_test(run.builder), target: run.target });
37413727
}
37423728

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

0 commit comments

Comments
 (0)