Skip to content

Commit e9b9f33

Browse files
authored
Rollup merge of #59603 - matklad:ptrhash, r=Centril
stabilize ptr::hash closes #56286
2 parents c5045e2 + a240c59 commit e9b9f33

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcore/ptr.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2561,7 +2561,6 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
25612561
/// # Examples
25622562
///
25632563
/// ```
2564-
/// #![feature(ptr_hash)]
25652564
/// use std::collections::hash_map::DefaultHasher;
25662565
/// use std::hash::{Hash, Hasher};
25672566
/// use std::ptr;
@@ -2579,7 +2578,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
25792578
///
25802579
/// assert_eq!(actual, expected);
25812580
/// ```
2582-
#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56286")]
2581+
#[stable(feature = "ptr_hash", since = "1.35.0")]
25832582
pub fn hash<T: ?Sized, S: hash::Hasher>(hashee: *const T, into: &mut S) {
25842583
use hash::Hash;
25852584
hashee.hash(into);

0 commit comments

Comments
 (0)