about summary refs log tree commit diff
path: root/src/libcore/dvec.rs
diff options
context:
space:
mode:
authorEric Holk <eric.holk@gmail.com>2012-06-27 15:21:50 -0700
committerEric Holk <eric.holk@gmail.com>2012-06-27 15:22:06 -0700
commitc3b98cabe1d7bee4878a967507ae745e9bfe13ac (patch)
tree720ff03680709fdb72283e1835d0e9912fc15a6e /src/libcore/dvec.rs
parente2205659e323b510686f594818e2f206e88e98f3 (diff)
Removed pretty much all the vector+ from core (issue #2719)
Diffstat (limited to 'src/libcore/dvec.rs')
-rw-r--r--src/libcore/dvec.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/dvec.rs b/src/libcore/dvec.rs
index 84a4981fb3c..85bde3b7c59 100644
--- a/src/libcore/dvec.rs
+++ b/src/libcore/dvec.rs
@@ -150,7 +150,8 @@ impl extensions<A> for dvec<A> {
             let data_ptr: *() = unsafe::reinterpret_cast(data);
             if data_ptr.is_null() { fail "Recursive use of dvec"; }
             log(error, "a");
-            self.data <- [mut t]/~ + data;
+            self.data <- [mut t]/~;
+            vec::push_all_move(self.data, data);
             log(error, "b");
         }
     }