diff options
| author | Graydon Hoare <[email protected]> | 2011-03-16 14:58:02 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-16 14:58:02 -0700 |
| commit | 54587bdccb7b6771cfc704a30fc0ef2c65824a15 (patch) | |
| tree | 6f154f9b038e9542b364e87ae887858a96bdb4a9 /src/comp/front/extfmt.rs | |
| parent | Add some more dlopen-related suppressions for the Mac (diff) | |
| download | rust-54587bdccb7b6771cfc704a30fc0ef2c65824a15.tar.xz rust-54587bdccb7b6771cfc704a30fc0ef2c65824a15.zip | |
Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. Tweak std lib vec fns in process.
Diffstat (limited to 'src/comp/front/extfmt.rs')
| -rw-r--r-- | src/comp/front/extfmt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/extfmt.rs b/src/comp/front/extfmt.rs index 255614d0..0a32a851 100644 --- a/src/comp/front/extfmt.rs +++ b/src/comp/front/extfmt.rs @@ -113,7 +113,7 @@ fn parse_fmt_string(str s) -> vec[piece] { fn flush_buf(str buf, &vec[piece] pieces) -> str { if (_str.byte_len(buf) > 0u) { auto piece = piece_string(buf); - pieces += piece; + pieces += vec(piece); } ret ""; } @@ -133,7 +133,7 @@ fn parse_fmt_string(str s) -> vec[piece] { } else { buf = flush_buf(buf, pieces); auto res = parse_conversion(s, i, lim); - pieces += res._0; + pieces += vec(res._0); i = res._1; } } else { |