]> git.lizzy.rs Git - rust.git/commitdiff
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)
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

1  2 
src/librustrt/c_str.rs
src/libstd/path/posix.rs
src/libstd/path/windows.rs

index 92d8e4005bf8c87d7e1a63c114326fce3a191c67,676f36e546858743fb730f36af8279e2b249351c..6a2e09c3ac6db6c1b561733102cf135b6ceb7820
@@@ -74,9 -74,9 +74,9 @@@ fn main() 
  use collections::string::String;
  use collections::hash;
  use core::fmt;
 -use core::kinds::marker;
 +use core::kinds::{Sized, marker};
  use core::mem;
- use core::prelude::{Clone, Collection, Drop, Eq, ImmutableSlice, Iterator};
+ use core::prelude::{Clone, Drop, Eq, ImmutableSlice, Iterator};
  use core::prelude::{MutableSlice, None, Option, Ordering, PartialEq};
  use core::prelude::{PartialOrd, RawPtr, Some, StrSlice, range};
  use core::ptr;
Simple merge
Simple merge