diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-11-22 15:45:12 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-11-29 10:55:13 -0800 |
| commit | c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b (patch) | |
| tree | 7b4e7af9dfe4342f3fd474f1010d4839281edd87 /src/compiletest/compiletest.rs | |
| parent | 6c672ee094a1a8e72c100100f43c73a9741f08a7 (diff) | |
libstd: Change `Path::new` to `Path::init`.
Diffstat (limited to 'src/compiletest/compiletest.rs')
| -rw-r--r-- | src/compiletest/compiletest.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 0f39b29c60a..1f06b9700c2 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -103,15 +103,15 @@ pub fn parse_config(args: ~[~str]) -> config { } fn opt_path(m: &getopts::Matches, nm: &str) -> Path { - Path::new(m.opt_str(nm).unwrap()) + Path::init(m.opt_str(nm).unwrap()) } config { compile_lib_path: matches.opt_str("compile-lib-path").unwrap(), run_lib_path: matches.opt_str("run-lib-path").unwrap(), rustc_path: opt_path(matches, "rustc-path"), - clang_path: matches.opt_str("clang-path").map(|s| Path::new(s)), - llvm_bin_path: matches.opt_str("llvm-bin-path").map(|s| Path::new(s)), + clang_path: matches.opt_str("clang-path").map(|s| Path::init(s)), + llvm_bin_path: matches.opt_str("llvm-bin-path").map(|s| Path::init(s)), src_base: opt_path(matches, "src-base"), build_base: opt_path(matches, "build-base"), aux_base: opt_path(matches, "aux-base"), @@ -124,10 +124,10 @@ pub fn parse_config(args: ~[~str]) -> config { } else { None }, - logfile: matches.opt_str("logfile").map(|s| Path::new(s)), - save_metrics: matches.opt_str("save-metrics").map(|s| Path::new(s)), + logfile: matches.opt_str("logfile").map(|s| Path::init(s)), + save_metrics: matches.opt_str("save-metrics").map(|s| Path::init(s)), ratchet_metrics: - matches.opt_str("ratchet-metrics").map(|s| Path::new(s)), + matches.opt_str("ratchet-metrics").map(|s| Path::init(s)), ratchet_noise_percent: matches.opt_str("ratchet-noise-percent").and_then(|s| from_str::<f64>(s)), runtool: matches.opt_str("runtool"), |
