diff options
| author | bors <bors@rust-lang.org> | 2014-11-01 20:21:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-01 20:21:47 +0000 |
| commit | 39f90aead4ad52de1d2c50418da4d66320233d8e (patch) | |
| tree | 6ffff6a5ffbd64e9da3d9d947b88f442f396f50c /src/libstd/path | |
| parent | 0547a407aa03b9f1c03843aead617a2e8c5d1147 (diff) | |
| parent | 21ac985af44f4e2470ef6f4c0eb4d72daf5a6497 (diff) | |
| download | rust-39f90aead4ad52de1d2c50418da4d66320233d8e.tar.gz rust-39f90aead4ad52de1d2c50418da4d66320233d8e.zip | |
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
Diffstat (limited to 'src/libstd/path')
| -rw-r--r-- | src/libstd/path/mod.rs | 1 | ||||
| -rw-r--r-- | src/libstd/path/posix.rs | 1 | ||||
| -rw-r--r-- | src/libstd/path/windows.rs | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index 6a122990246..62105c0d90e 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -67,7 +67,6 @@ println!("path exists: {}", path.exists()); #![experimental] -use collections::{Collection, MutableSeq}; use c_str::CString; use clone::Clone; use fmt; diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index 8a50ecc5ca6..e090d9d7098 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -13,7 +13,6 @@ use c_str::{CString, ToCStr}; use clone::Clone; use cmp::{PartialEq, Eq, PartialOrd, Ord, Ordering}; -use collections::{Collection, MutableSeq}; use from_str::FromStr; use hash; use io::Writer; diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index e4bead6d8ab..f0d1ecf9d24 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -16,7 +16,6 @@ use ascii::AsciiCast; use c_str::{CString, ToCStr}; use clone::Clone; use cmp::{PartialEq, Eq, PartialOrd, Ord, Ordering}; -use collections::{Collection, MutableSeq}; use from_str::FromStr; use hash; use io::Writer; |
