Update build_system/src/test.rs
Co-authored-by: antoyo <antoyo@users.noreply.github.com>
This commit is contained in:
parent
7dd3f6fffb
commit
dcb531f130
1 changed files with 1 additions and 1 deletions
|
|
@ -527,7 +527,7 @@ fn setup_rustc(env: &mut Env, args: &TestArg) -> Result<(), String> {
|
|||
}
|
||||
})?;
|
||||
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))
|
||||
.and_then(|rustc| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue