filetests: run_passes can take &str, not &String.
This commit is contained in:
committed by
Dan Gohman
parent
2a7cc7e644
commit
e07e159bda
@@ -217,7 +217,7 @@ fn main() {
|
||||
rest_cmd.is_present("verbose"),
|
||||
&get_vec(rest_cmd.values_of("pass")),
|
||||
target_val,
|
||||
&rest_cmd.value_of("single-file").unwrap().to_string(),
|
||||
rest_cmd.value_of("single-file").unwrap(),
|
||||
).map(|_time| ())
|
||||
}
|
||||
("print-cfg", Some(rest_cmd)) => {
|
||||
|
||||
@@ -93,7 +93,7 @@ pub fn run(verbose: bool, files: &[String]) -> TestResult {
|
||||
///
|
||||
/// Directories are scanned recursively for test cases ending in `.clif`.
|
||||
///
|
||||
pub fn run_passes(verbose: bool, passes: &[String], target: &str, file: &String) -> TestResult {
|
||||
pub fn run_passes(verbose: bool, passes: &[String], target: &str, file: &str) -> TestResult {
|
||||
let mut runner = TestRunner::new(verbose);
|
||||
|
||||
let path = Path::new(file);
|
||||
|
||||
Reference in New Issue
Block a user