Stabilize BuildHasher::hash_one
This commit is contained in:
parent
776f22292f
commit
ba5a3968b8
@ -2662,7 +2662,6 @@ fn clone_from(&mut self, other: &Self) {
|
||||
/// 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 @@ fn borrow_mut(&mut self) -> &mut [T] {
|
||||
/// 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…
Reference in New Issue
Block a user