From 3cd9f4e42822aa8d2de4f4389a24060e6af382ab Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 27 Mar 2015 21:21:37 +0100 Subject: [PATCH] Move away from as_slice() in contenttest. --- tests/contenttest.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/contenttest.rs b/tests/contenttest.rs index e8b281cf7a2..c8f26ce29af 100644 --- a/tests/contenttest.rs +++ b/tests/contenttest.rs @@ -8,7 +8,6 @@ // except according to those terms. #![feature(collections)] -#![feature(core)] #![feature(exit_status)] #![feature(path)] #![feature(rustc_private)] @@ -48,7 +47,7 @@ fn main() { fn parse_config(args: Vec) -> Config { let args = args.tail(); let opts = vec!(reqopt("s", "source-dir", "source-dir", "source-dir")); - let matches = match getopts(args, opts.as_slice()) { + let matches = match getopts(args, &opts) { Ok(m) => m, Err(f) => panic!(f.to_string()) }; @@ -97,7 +96,7 @@ fn run_test(file: String) { let path = env::current_dir().unwrap().join(&file); // FIXME (#1094): not the right way to transform a path let infile = format!("file://{}", path.display()); - let args = ["-z", "-f", infile.as_slice()]; + let args = ["-z", "-f", &*infile]; let mut prc_arg = env::current_exe().unwrap(); let prc_arg = match prc_arg.pop() { @@ -105,7 +104,7 @@ fn run_test(file: String) { _ => panic!("could not pop directory"), }; let output = match Command::new(prc_arg.to_str().unwrap()) - .args(args.as_slice()) + .args(&args) .stdin(Stdio::null()) .stderr(Stdio::inherit()) .output()