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/comp/syntax | |
| 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/comp/syntax')
| -rw-r--r-- | src/comp/syntax/print/pp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/syntax/print/pp.rs b/src/comp/syntax/print/pp.rs index 3ee31314299..0b55bb8c356 100644 --- a/src/comp/syntax/print/pp.rs +++ b/src/comp/syntax/print/pp.rs @@ -101,9 +101,9 @@ fn mk_printer(out: io::writer, linewidth: uint) -> printer { // fall behind. let n: uint = 3u * linewidth; #debug("mk_printer %u", linewidth); - let token: [mutable token] = vec::init_elt_mut(n, EOF); - let size: [mutable int] = vec::init_elt_mut(n, 0); - let scan_stack: [mutable uint] = vec::init_elt_mut(n, 0u); + let token: [mutable token] = vec::to_mut(vec::init_elt(n, EOF)); + let size: [mutable int] = vec::to_mut(vec::init_elt(n, 0)); + let scan_stack: [mutable uint] = vec::to_mut(vec::init_elt(n, 0u)); let print_stack: [print_stack_elt] = []; @{out: out, buf_len: n, |
