diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-05-24 23:44:57 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-05-24 23:47:50 -0700 |
| commit | ba5a3968b8ecd578247f94c6a62bfa8652cc2ef8 (patch) | |
| tree | 0121efc7f8cecde3d62cb4b8af630bffab224ae8 | |
| parent | 776f22292fb5c2cc45f029d4b754662120732a6a (diff) | |
| download | rust-ba5a3968b8ecd578247f94c6a62bfa8652cc2ef8.tar.gz rust-ba5a3968b8ecd578247f94c6a62bfa8652cc2ef8.zip | |
Stabilize `BuildHasher::hash_one`
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 1 | ||||
| -rw-r--r-- | library/core/src/array/mod.rs | 1 | ||||
| -rw-r--r-- | library/core/src/hash/mod.rs | 4 |
3 files changed, 1 insertions, 5 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 82f30a26d41..47661a3d384 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2662,7 +2662,6 @@ impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> { /// as required by the `core::borrow::Borrow` implementation. /// /// ``` -/// #![feature(build_hasher_simple_hash_one)] /// use std::hash::BuildHasher; /// /// let b = std::collections::hash_map::RandomState::new(); diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index bdb4c975909..70f4bf2a7ed 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -291,7 +291,6 @@ impl<'a, T, const N: usize> TryFrom<&'a mut [T]> for &'a mut [T; N] { /// as required by the `Borrow` implementation. /// /// ``` -/// #![feature(build_hasher_simple_hash_one)] /// use std::hash::BuildHasher; /// /// let b = std::collections::hash_map::RandomState::new(); diff --git a/library/core/src/hash/mod.rs b/library/core/src/hash/mod.rs index a73b5b610a4..ca7c0772de8 100644 --- a/library/core/src/hash/mod.rs +++ b/library/core/src/hash/mod.rs @@ -674,8 +674,6 @@ pub trait BuildHasher { /// # Example /// /// ``` - /// #![feature(build_hasher_simple_hash_one)] - /// /// use std::cmp::{max, min}; /// use std::hash::{BuildHasher, Hash, Hasher}; /// struct OrderAmbivalentPair<T: Ord>(T, T); @@ -697,7 +695,7 @@ pub trait BuildHasher { /// bh.hash_one(&OrderAmbivalentPair(2, 10)) /// ); /// ``` - #[unstable(feature = "build_hasher_simple_hash_one", issue = "86161")] + #[stable(feature = "build_hasher_simple_hash_one", since = "CURRENT_RUSTC_VERSION")] fn hash_one<T: Hash>(&self, x: T) -> u64 where Self: Sized, |
