diff options
Diffstat (limited to 'src/compiletest/compiletest.rs')
| -rw-r--r-- | src/compiletest/compiletest.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index b01de242590..094d176980b 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -131,7 +131,7 @@ pub fn parse_config(args: ~[~str]) -> config { ratchet_noise_percent: getopts::opt_maybe_str(matches, "ratchet-noise-percent").map(|s| - f64::from_str(*s).get()), + f64::from_str(*s).unwrap()), runtool: getopts::opt_maybe_str(matches, "runtool"), rustcflags: getopts::opt_maybe_str(matches, "rustcflags"), jit: getopts::opt_present(matches, "jit"), @@ -267,7 +267,7 @@ pub fn is_test(config: &config, testfile: &Path) -> bool { _ => ~[~".rc", ~".rs"] }; let invalid_prefixes = ~[~".", ~"#", ~"~"]; - let name = testfile.filename().get(); + let name = testfile.filename().unwrap(); let mut valid = false; @@ -300,7 +300,7 @@ pub fn make_test_name(config: &config, testfile: &Path) -> test::TestName { fn shorten(path: &Path) -> ~str { let filename = path.filename(); let dir = path.pop().filename(); - fmt!("%s/%s", dir.get_or_default(~""), filename.get_or_default(~"")) + fmt!("%s/%s", dir.unwrap_or_default(~""), filename.unwrap_or_default(~"")) } test::DynTestName(fmt!("[%s] %s", |
