diff options
| author | bors <bors@rust-lang.org> | 2013-06-27 15:01:58 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-27 15:01:58 -0700 |
| commit | 63afb8ccc8dd945e35fa43ca319aeaa5fba78134 (patch) | |
| tree | 4c0757e660bffe4cc557d8790fa6b359bc5542eb /src/compiletest | |
| parent | 4c86a0431b637edd23b91234765402bb41edcae8 (diff) | |
| parent | 366ca44cc8f79704f8781adb15e74d3c2a0e5572 (diff) | |
auto merge of #7430 : huonw/rust/vec-kill, r=thestinger
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/compiletest.rs | 2 | ||||
| -rw-r--r-- | src/compiletest/runtest.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 683d5fecc34..d858003c353 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -75,7 +75,7 @@ pub fn parse_config(args: ~[~str]) -> config { ]; assert!(!args.is_empty()); - let args_ = vec::tail(args); + let args_ = args.tail(); let matches = &match getopts::getopts(args_, opts) { Ok(m) => m, diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 3e2f484ee53..a31e0b961f7 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -321,8 +321,7 @@ fn check_error_patterns(props: &TestProps, if done { return; } let missing_patterns = - vec::slice(props.error_patterns, next_err_idx, - props.error_patterns.len()); + props.error_patterns.slice(next_err_idx, props.error_patterns.len()); if missing_patterns.len() == 1u { fatal_ProcRes(fmt!("error pattern '%s' not found!", missing_patterns[0]), ProcRes); |
