about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2019-04-01 16:36:07 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2019-04-01 16:36:07 +0300
commita240c59980c8c952da593086ca4bc2dca87457b6 (patch)
tree08b3c020b7526a0a5a6550e1d748a99d15a3cdb6
parenteab3eb38df8dca99110b6149b3a15deeb4ef0413 (diff)
downloadrust-a240c59980c8c952da593086ca4bc2dca87457b6.tar.gz
rust-a240c59980c8c952da593086ca4bc2dca87457b6.zip
stabilize ptr::hash
closes #56286
-rw-r--r--src/libcore/ptr.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index dabf914fdb2..4a7a16b2c94 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -2561,7 +2561,6 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
 /// # Examples
 ///
 /// ```
-/// #![feature(ptr_hash)]
 /// use std::collections::hash_map::DefaultHasher;
 /// use std::hash::{Hash, Hasher};
 /// use std::ptr;
@@ -2579,7 +2578,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
 ///
 /// assert_eq!(actual, expected);
 /// ```
-#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56286")]
+#[stable(feature = "ptr_hash", since = "1.35.0")]
 pub fn hash<T: ?Sized, S: hash::Hasher>(hashee: *const T, into: &mut S) {
     use hash::Hash;
     hashee.hash(into);