Rollup merge of #129943 - onur-ozkan:test-float-parse-compiler, r=Kobzol

use the bootstrapped compiler for `test-float-parse` test

Fixes https://github.com/rust-lang/rust/pull/122709#issuecomment-2327259336.

Blocker for https://github.com/rust-lang/rust/pull/122709
This commit is contained in:
Matthias Krüger 2024-09-05 19:43:49 +02:00 committed by GitHub
commit 57d85fa0cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3529,11 +3529,13 @@ impl Step for TestFloatParse {
fn run(self, builder: &Builder<'_>) { fn run(self, builder: &Builder<'_>) {
let bootstrap_host = builder.config.build; 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 path = self.path.to_str().unwrap();
let crate_name = self.path.components().last().unwrap().as_os_str().to_str().unwrap(); let crate_name = self.path.components().last().unwrap().as_os_str().to_str().unwrap();
if !builder.download_rustc() {
builder.ensure(compile::Std::new(compiler, self.host)); builder.ensure(compile::Std::new(compiler, self.host));
}
// Run any unit tests in the crate // Run any unit tests in the crate
let cargo_test = tool::prepare_tool_cargo( let cargo_test = tool::prepare_tool_cargo(