diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-06-08 21:38:47 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-06-08 23:19:30 -0400 |
| commit | de367157b55ee8664dfceec2c2e291087d5c188a (patch) | |
| tree | 3d8ba27d2250f4a7a06235b422e674514a69e7b2 /src/compiletest | |
| parent | 470bf0dfb362e7494cfddf4e7d443e1264dfdf2f (diff) | |
remove deprecated vec::{is_empty, len} functions
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/compiletest.rc | 2 | ||||
| -rw-r--r-- | src/compiletest/runtest.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compiletest/compiletest.rc b/src/compiletest/compiletest.rc index c40cec262f8..7a0622d059d 100644 --- a/src/compiletest/compiletest.rc +++ b/src/compiletest/compiletest.rc @@ -97,7 +97,7 @@ pub fn parse_config(args: ~[~str]) -> config { mode: str_mode(getopts::opt_str(matches, "mode")), run_ignored: getopts::opt_present(matches, "ignored"), filter: - if vec::len(matches.free) > 0u { + if !matches.free.is_empty() { option::Some(copy matches.free[0]) } else { option::None }, logfile: getopts::opt_maybe_str(matches, "logfile").map(|s| Path(*s)), diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 1015373d7ce..b4a20886ad8 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -297,7 +297,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) { fn check_error_patterns(props: &TestProps, testfile: &Path, ProcRes: &ProcRes) { - if vec::is_empty(props.error_patterns) { + if props.error_patterns.is_empty() { fatal(~"no error pattern specified in " + testfile.to_str()); } |
