]> git.lizzy.rs Git - rust.git/commit
auto merge of #18474 : alexcrichton/rust/no-more-traits, r=aturon
authorbors <bors@rust-lang.org>
Sat, 1 Nov 2014 20:21:47 +0000 (20:21 +0000)
committerbors <bors@rust-lang.org>
Sat, 1 Nov 2014 20:21:47 +0000 (20:21 +0000)
commit39f90aead4ad52de1d2c50418da4d66320233d8e
tree6ffff6a5ffbd64e9da3d9d947b88f442f396f50c
parent0547a407aa03b9f1c03843aead617a2e8c5d1147
parent21ac985af44f4e2470ef6f4c0eb4d72daf5a6497
auto merge of #18474 : alexcrichton/rust/no-more-traits, r=aturon

As part of the collections reform RFC, this commit removes all collections
traits in favor of inherent methods on collections themselves. All methods
should continue to be available on all collections.

This is a breaking change with all of the collections traits being removed and
no longer being in the prelude. In order to update old code you should move the
trait implementations to inherent implementations directly on the type itself.

Note that some traits had default methods which will also need to be implemented
to maintain backwards compatibility.

[breaking-change]
cc #18424
src/librustrt/c_str.rs
src/libstd/path/posix.rs
src/libstd/path/windows.rs