diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-02-29 23:44:52 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-02 15:49:49 -0800 |
| commit | 3ed6f6520f56204f1c7c799ec8fa231bef0fb4d1 (patch) | |
| tree | 4b8cb49db4cbf3fa3bb7a88ba72f821d4c00dba9 /src/compiletest | |
| parent | 47e7a05a28c9662159af2d2e0f2b7efc13fa09cb (diff) | |
| download | rust-3ed6f6520f56204f1c7c799ec8fa231bef0fb4d1.tar.gz rust-3ed6f6520f56204f1c7c799ec8fa231bef0fb4d1.zip | |
core: Remove _mut functions from vec
Instead, use vec::to_mut/from_mut to transform vectors in place as needed.
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/runtest.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 517da771c0a..75855b63c8d 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -229,7 +229,8 @@ fn check_expected_errors(expected_errors: [errors::expected_error], procres: procres) { // true if we found the error in question - let found_flags = vec::init_elt_mut(vec::len(expected_errors), false); + let found_flags = vec::to_mut(vec::init_elt( + vec::len(expected_errors), false)); if procres.status == 0 { fatal("process did not return an error status"); |
