Skip to content

Commit 7b15551

Browse files
committed
Reorder Bootstrap::{should,make}_run to match usual order
1 parent 25be3eb commit 7b15551

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ impl Step for Bootstrap {
8383
const DEFAULT: bool = true;
8484
const ONLY_HOSTS: bool = true;
8585

86+
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
87+
run.path("src/bootstrap")
88+
}
89+
90+
fn make_run(run: RunConfig<'_>) {
91+
run.builder.ensure(Bootstrap);
92+
}
93+
8694
/// Tests the build system itself.
8795
fn run(self, builder: &Builder<'_>) {
8896
let host = builder.config.build;
@@ -126,12 +134,4 @@ impl Step for Bootstrap {
126134
// there's not many this shouldn't be a problem.
127135
run_cargo_test(cargo, &["--test-threads=1"], &[], "bootstrap", None, host, builder);
128136
}
129-
130-
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
131-
run.path("src/bootstrap")
132-
}
133-
134-
fn make_run(run: RunConfig<'_>) {
135-
run.builder.ensure(Bootstrap);
136-
}
137137
}

0 commit comments

Comments
 (0)