about summary refs log tree commit diff
path: root/src/libcore/hash
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-21 15:28:06 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-21 15:28:06 -0700
commit98e9765d973d46faa5c80fb37a48040ca9e87b28 (patch)
tree13f27a4765ca1feeaeb48a829f9f0e810305fc5e /src/libcore/hash
parent44338cb944f8a4ac8132929d7546a12291392aab (diff)
parent8f5b5f94dcdb9884737dfbc8efd893d1d70f0b14 (diff)
downloadrust-98e9765d973d46faa5c80fb37a48040ca9e87b28.tar.gz
rust-98e9765d973d46faa5c80fb37a48040ca9e87b28.zip
rollup merge of #24541: alexcrichton/issue-24538
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
Diffstat (limited to 'src/libcore/hash')
-rw-r--r--src/libcore/hash/mod.rs1
-rw-r--r--src/libcore/hash/sip.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/libcore/hash/mod.rs b/src/libcore/hash/mod.rs
index 553e0c0dfe6..e848a44e01c 100644
--- a/src/libcore/hash/mod.rs
+++ b/src/libcore/hash/mod.rs
@@ -62,7 +62,6 @@
 
 use prelude::*;
 
-use default::Default;
 use mem;
 
 pub use self::sip::SipHasher;
diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs
index 65f790d5d43..be419e2cdad 100644
--- a/src/libcore/hash/sip.rs
+++ b/src/libcore/hash/sip.rs
@@ -13,7 +13,6 @@
 #![allow(deprecated)] // until the next snapshot for inherent wrapping ops
 
 use prelude::*;
-use default::Default;
 use super::Hasher;
 
 /// An implementation of SipHash 2-4.