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/libunicode/u_str.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libunicode') diff --git a/src/libunicode/u_str.rs b/src/libunicode/u_str.rs index e4148440252..4bad631798f 100644 --- a/src/libunicode/u_str.rs +++ b/src/libunicode/u_str.rs @@ -19,7 +19,7 @@ use core::clone::Clone; use core::cmp; -use core::collections::Collection; +use core::slice::ImmutableSlice; use core::iter::{Filter, AdditiveIterator, Iterator, DoubleEndedIterator}; use core::kinds::Sized; use core::option::{Option, None, Some}; -- cgit 1.4.1-3-g733a5