From 21ac985af44f4e2470ef6f4c0eb4d72daf5a6497 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 30 Oct 2014 13:43:24 -0700 Subject: collections: Remove all collections traits 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/libstd/io/extensions.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/libstd/io/extensions.rs') diff --git a/src/libstd/io/extensions.rs b/src/libstd/io/extensions.rs index 06ed183e936..6d0b8ebc3d9 100644 --- a/src/libstd/io/extensions.rs +++ b/src/libstd/io/extensions.rs @@ -15,7 +15,6 @@ // FIXME: Not sure how this should be structured // FIXME: Iteration should probably be considered separately -use collections::{Collection, MutableSeq}; use io::{IoError, IoResult, Reader}; use io; use iter::Iterator; @@ -502,7 +501,6 @@ mod test { mod bench { extern crate test; - use collections::Collection; use prelude::*; use self::test::Bencher; -- cgit 1.4.1-3-g733a5