diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-01 17:29:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-01 17:29:59 +0200 |
| commit | e9b9f33ecc54eaebef0edaf0b26e5e32e2ded9c2 (patch) | |
| tree | e35d9514f0c92c8d9619fbeda43c4fae6c08837d /src | |
| parent | c5045e24d4b0e7f641187a9b2adf01ee883dd408 (diff) | |
| parent | a240c59980c8c952da593086ca4bc2dca87457b6 (diff) | |
| download | rust-e9b9f33ecc54eaebef0edaf0b26e5e32e2ded9c2.tar.gz rust-e9b9f33ecc54eaebef0edaf0b26e5e32e2ded9c2.zip | |
Rollup merge of #59603 - matklad:ptrhash, r=Centril
stabilize ptr::hash closes #56286
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/ptr.rs | 3 |
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); |
