about summary refs log tree commit diff
path: root/src/libstd/lib.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-04-03 22:28:45 +1100
committerAlex Crichton <alex@alexcrichton.com>2014-04-03 13:42:32 -0700
commitf5a4837df0885368352d118e1e71f4853bf55bf8 (patch)
tree782fff3828b54a74c2ec885379414b350e951c8b /src/libstd/lib.rs
parent0bd6f2ce0b650ebcb1d2b05dc501a9ed4907b6d2 (diff)
downloadrust-f5a4837df0885368352d118e1e71f4853bf55bf8.tar.gz
rust-f5a4837df0885368352d118e1e71f4853bf55bf8.zip
std: override clone_from for Vec.
A vector can reuse its allocation (and the allocations/resources of any
contained values) when cloning into an already-instantiated vector, so
we might as well do so.
Diffstat (limited to 'src/libstd/lib.rs')
-rw-r--r--src/libstd/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index fb6c1b4c8a3..7971c332b27 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -232,4 +232,5 @@ mod std {
     pub use to_str;
     pub use ty;
     pub use unstable;
+    pub use vec;
 }