diff options
| author | bors <bors@rust-lang.org> | 2013-03-08 08:45:43 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-03-08 08:45:43 -0800 |
| commit | 3bbcac322669cff3abde5be937cc4ec3860f3985 (patch) | |
| tree | 70dd00fbb69807cc2dcab84b9ad5803fe06e57bf /src/libsyntax/parse/mod.rs | |
| parent | 647a94d01a54a75e08fd1b6fa74761f70874bafe (diff) | |
| parent | 62651df2b482af4dc98b0aec6c5f1ad112fab8ec (diff) | |
| download | rust-3bbcac322669cff3abde5be937cc4ec3860f3985.tar.gz rust-3bbcac322669cff3abde5be937cc4ec3860f3985.zip | |
auto merge of #5279 : alexcrichton/rust/no-dvec, r=pcwalton
Closes #4985 by removing the `dvec` module and all use cases throughout the compiler. A number of uses were directly convertible to `let mut foo = ~[];`, while others in hash maps and some fields had to be converted to `@mut ~[T]`. A small number of `DVec` instances in fields were able to be converted directly to `~[T]` without the `@`, but this was a difficult thing to do.
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 48d3fbe8889..a1fc7230dd1 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -303,9 +303,9 @@ mod test { use util::testing::*; #[test] fn to_json_str (val: Encodable<std::json::Encoder>) -> ~str { - let bw = @io::BytesWriter(); - val.encode(~std::json::Encoder(bw as io::Writer)); - str::from_bytes(bw.bytes.data) + do io::with_str_writer |writer| { + val.encode(~std::json::Encoder(writer)); + } } #[test] fn alltts () { |
