diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-04-03 22:28:45 +1100 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-04-03 13:42:32 -0700 |
| commit | f5a4837df0885368352d118e1e71f4853bf55bf8 (patch) | |
| tree | 782fff3828b54a74c2ec885379414b350e951c8b /src/libstd/lib.rs | |
| parent | 0bd6f2ce0b650ebcb1d2b05dc501a9ed4907b6d2 (diff) | |
| download | rust-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.rs | 1 |
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; } |
