Skip to content

Commit 786178b

Browse files
committed
Auto merge of rust-lang#111934 - scottmcm:stabilize-hash-one, r=Amanieu
Stabilize `BuildHasher::hash_one` FCP completed in rust-lang#86161 (comment)
2 parents a525c7d + ba5a396 commit 786178b

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

library/alloc/src/vec/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,6 @@ impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> {
26622662
/// as required by the `core::borrow::Borrow` implementation.
26632663
///
26642664
/// ```
2665-
/// #![feature(build_hasher_simple_hash_one)]
26662665
/// use std::hash::BuildHasher;
26672666
///
26682667
/// let b = std::collections::hash_map::RandomState::new();

library/core/src/array/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ impl<'a, T, const N: usize> TryFrom<&'a mut [T]> for &'a mut [T; N] {
291291
/// as required by the `Borrow` implementation.
292292
///
293293
/// ```
294-
/// #![feature(build_hasher_simple_hash_one)]
295294
/// use std::hash::BuildHasher;
296295
///
297296
/// let b = std::collections::hash_map::RandomState::new();

library/core/src/hash/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,6 @@ pub trait BuildHasher {
674674
/// # Example
675675
///
676676
/// ```
677-
/// #![feature(build_hasher_simple_hash_one)]
678-
///
679677
/// use std::cmp::{max, min};
680678
/// use std::hash::{BuildHasher, Hash, Hasher};
681679
/// struct OrderAmbivalentPair<T: Ord>(T, T);
@@ -697,7 +695,7 @@ pub trait BuildHasher {
697695
/// bh.hash_one(&OrderAmbivalentPair(2, 10))
698696
/// );
699697
/// ```
700-
#[unstable(feature = "build_hasher_simple_hash_one", issue = "86161")]
698+
#[stable(feature = "build_hasher_simple_hash_one", since = "CURRENT_RUSTC_VERSION")]
701699
fn hash_one<T: Hash>(&self, x: T) -> u64
702700
where
703701
Self: Sized,

0 commit comments

Comments
 (0)