1
Fork 0

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.
This commit is contained in:
Huon Wilson 2014-04-03 22:28:45 +11:00 committed by Alex Crichton
parent 0bd6f2ce0b
commit f5a4837df0
2 changed files with 53 additions and 4 deletions

View file

@ -232,4 +232,5 @@ mod std {
pub use to_str;
pub use ty;
pub use unstable;
pub use vec;
}