Stabilize BuildHasher::hash_one
This commit is contained in:
parent
776f22292f
commit
ba5a3968b8
3 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue