Fix build failure caused by breaking change in Nightly rustc.

This commit is contained in:
pe@pijul.org 2017-01-26 18:07:26 +01:00 committed by Brian Smith
parent 200edfc989
commit 5beeff7e00

View File

@ -220,11 +220,11 @@ fn build_msvc(target_triple: &[&str], disable_opt: bool, num_jobs: &str,
run_command_with_args(&msbuild, &test_args);
}
fn run_command_with_args<S>(command_name: S, args: &Vec<String>)
fn run_command_with_args<S>(command_name: S, args: &[String])
where S: AsRef<std::ffi::OsStr> + Copy
{
let status = std::process::Command::new(command_name)
.args(&args)
.args(args)
.status()
.unwrap_or_else(|e| {
panic!("failed to execute {}: {}",