Stabilize BuildHasher::hash_one

This commit is contained in:
Scott McMurray 2023-05-24 23:44:57 -07:00
parent 776f22292f
commit ba5a3968b8
3 changed files with 1 additions and 5 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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,