From 8f5b5f94dcdb9884737dfbc8efd893d1d70f0b14 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 17 Apr 2015 14:31:30 -0700 Subject: std: Add Default/IntoIterator/ToOwned to the prelude This is an implementation of [RFC 1030][rfc] which adds these traits to the prelude and additionally removes all inherent `into_iter` methods on collections in favor of the trait implementation (which is now accessible by default). [rfc]: https://github.com/rust-lang/rfcs/pull/1030 This is technically a breaking change due to the prelude additions and removal of inherent methods, but it is expected that essentially no code breaks in practice. [breaking-change] Closes #24538 --- src/libcollections/enum_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcollections/enum_set.rs') diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs index a3a266669b1..e6cdb88d3e1 100644 --- a/src/libcollections/enum_set.rs +++ b/src/libcollections/enum_set.rs @@ -16,7 +16,7 @@ use core::prelude::*; use core::marker; use core::fmt; -use core::iter::{FromIterator, IntoIterator}; +use core::iter::{FromIterator}; use core::ops::{Sub, BitOr, BitAnd, BitXor}; // FIXME(contentions): implement union family of methods? (general design may be wrong here) -- cgit 1.4.1-3-g733a5