mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
4af84313d6
This used to create a Vec<T> and then call .move_iter().collect() to convert to a ~[T]. We can't do that anymore, so construct the ~[T] in place instead. This has the added benefit of avoiding an unnecessary memory copy (from the Vec<T> to the ~[T]).