From cbd9a41bdf3771eceeb1d4701e1d598b1321cdad Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 18 Feb 2015 17:09:09 -0800 Subject: [PATCH] Upgrade to rustc 1.0.0-nightly (6c065fc8c 2015-02-17) (built 2015-02-18) --- phf/src/map.rs | 1 + phf/src/ordered_map.rs | 1 + phf/src/ordered_set.rs | 1 + phf/src/set.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/phf/src/map.rs b/phf/src/map.rs index f5753c0e..afb1ee7d 100644 --- a/phf/src/map.rs +++ b/phf/src/map.rs @@ -130,6 +130,7 @@ impl Map { } impl<'a, K, V> IntoIterator for &'a Map { + type Item = (&'a K, &'a V); type IntoIter = Entries<'a, K, V>; fn into_iter(self) -> Entries<'a, K, V> { diff --git a/phf/src/ordered_map.rs b/phf/src/ordered_map.rs index 7d77e2b7..b0dc621b 100644 --- a/phf/src/ordered_map.rs +++ b/phf/src/ordered_map.rs @@ -149,6 +149,7 @@ impl OrderedMap { } impl<'a, K, V> IntoIterator for &'a OrderedMap { + type Item = (&'a K, &'a V); type IntoIter = Entries<'a, K, V>; fn into_iter(self) -> Entries<'a, K, V> { diff --git a/phf/src/ordered_set.rs b/phf/src/ordered_set.rs index 8389884e..273c8b1f 100644 --- a/phf/src/ordered_set.rs +++ b/phf/src/ordered_set.rs @@ -112,6 +112,7 @@ impl OrderedSet where T: Eq + PhfHash { } impl<'a, T> IntoIterator for &'a OrderedSet { + type Item = &'a T; type IntoIter = Iter<'a, T>; fn into_iter(self) -> Iter<'a, T> { diff --git a/phf/src/set.rs b/phf/src/set.rs index fedc8339..8ea49682 100644 --- a/phf/src/set.rs +++ b/phf/src/set.rs @@ -101,6 +101,7 @@ impl Set where T: Eq + PhfHash { } impl<'a, T> IntoIterator for &'a Set { + type Item = &'a T; type IntoIter = Iter<'a, T>; fn into_iter(self) -> Iter<'a, T> {