From f7bce26d78a411df24b6c3f540a25728317aca4e Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Tue, 3 Sep 2024 22:54:32 +0300 Subject: [PATCH] use the bootstrapped compiler for `test-float-parse` test Signed-off-by: onur-ozkan --- src/bootstrap/src/core/build_steps/test.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs index 84a6b26a491ed..36bba0db4d9f9 100644 --- a/src/bootstrap/src/core/build_steps/test.rs +++ b/src/bootstrap/src/core/build_steps/test.rs @@ -3526,12 +3526,10 @@ impl Step for TestFloatParse { fn run(self, builder: &Builder<'_>) { let bootstrap_host = builder.config.build; - let compiler = builder.compiler(0, bootstrap_host); + let compiler = builder.compiler(builder.top_stage, bootstrap_host); let path = self.path.to_str().unwrap(); let crate_name = self.path.components().last().unwrap().as_os_str().to_str().unwrap(); - builder.ensure(compile::Std::new(compiler, self.host)); - // Run any unit tests in the crate let cargo_test = tool::prepare_tool_cargo( builder,