Update build_system/src/test.rs

Co-authored-by: antoyo <antoyo@users.noreply.github.com>
This commit is contained in:
Nic 2024-01-16 12:57:34 -05:00 committed by GitHub
parent 7dd3f6fffb
commit dcb531f130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,7 +527,7 @@ fn setup_rustc(env: &mut Env, args: &TestArg) -> Result<(), String> {
} }
})?; })?;
let rustc = String::from_utf8( let rustc = String::from_utf8(
run_command_with_env(&[&"rustup", &OsStr::new(&*toolchain), &"which", &"rustc"], rust_dir, Some(env))?.stdout, run_command_with_env(&[&"rustup", &toolchain, &"which", &"rustc"], rust_dir, Some(env))?.stdout,
) )
.map_err(|error| format!("Failed to retrieve rustc path: {:?}", error)) .map_err(|error| format!("Failed to retrieve rustc path: {:?}", error))
.and_then(|rustc| { .and_then(|rustc| {