diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-11-26 23:50:12 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-03 10:41:48 -0500 |
| commit | 5cfac942018b3f8e0b384c49d6564fcff25634e6 (patch) | |
| tree | a8ff3c15e0553d35fd3a2f1c2f93cbd1038858a9 /src/libstd | |
| parent | 09707d70a48b7bb1a180f44e233dfe36b196ad46 (diff) | |
| download | rust-5cfac942018b3f8e0b384c49d6564fcff25634e6.tar.gz rust-5cfac942018b3f8e0b384c49d6564fcff25634e6.zip | |
Deprecate Equiv
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 50a00714ea0..bd07dbf5c91 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -425,12 +425,14 @@ impl<K: Eq + Hash<S>, V, S, H: Hasher<S>> HashMap<K, V, H> { table::make_hash(&self.hasher, x) } + #[allow(deprecated)] fn search_equiv<'a, Sized? Q: Hash<S> + Equiv<K>>(&'a self, q: &Q) -> Option<FullBucketImm<'a, K, V>> { let hash = self.make_hash(q); search_hashed(&self.table, &hash, |k| q.equiv(k)).into_option() } + #[allow(deprecated)] fn search_equiv_mut<'a, Sized? Q: Hash<S> + Equiv<K>>(&'a mut self, q: &Q) -> Option<FullBucketMut<'a, K, V>> { let hash = self.make_hash(q); |
