]> git.lizzy.rs Git - rust.git/commit
Libs: Unify concat and concat_vec
authorAaron Turon <aturon@mozilla.com>
Mon, 3 Nov 2014 04:27:46 +0000 (20:27 -0800)
committerAaron Turon <aturon@mozilla.com>
Tue, 30 Dec 2014 20:02:22 +0000 (12:02 -0800)
commite91d810b9b36d6bb163970cd0e8bbf4692f704bb
tree5f8fb0a352ad9b0c23c36e25c789ec4c46f6bd41
parent4f863a338e0a7c33f81a8ac138103f1a0e8b33c5
Libs: Unify concat and concat_vec

We've long had traits `StrVector` and `VectorVector` providing
`concat`/`connect` and `concat_vec`/`connect_vec` respectively. The
reason for the distinction is that coherence rules did not used to be
robust enough to allow impls on e.g. `Vec<String>` versus `Vec<&[T]>`.

This commit consolidates the traits into a single `SliceConcatExt` trait
provided by `slice` and the preldue (where it replaces `StrVector`,
which is removed.)

[breaking-change]
src/libcollections/slice.rs
src/libcollections/str.rs
src/libstd/path/posix.rs
src/libstd/path/windows.rs
src/libstd/prelude.rs