about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDale Wijnand <dale.wijnand@gmail.com>2018-11-27 16:25:38 +0000
committerDale Wijnand <dale.wijnand@gmail.com>2018-11-27 16:32:41 +0000
commit7b429b0440eb7e8888ea600ca2103cb13999b3a2 (patch)
tree958c987a0fde74214d722bf5ec8a17dbc8be8e32
parent5558c07c6e24b6677e3a60a1314d705c8c23ab47 (diff)
downloadrust-7b429b0440eb7e8888ea600ca2103cb13999b3a2.tar.gz
rust-7b429b0440eb7e8888ea600ca2103cb13999b3a2.zip
Fix stability attribute for ptr::hash
-rw-r--r--src/libcore/ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs
index c0e8e581144..13aae988d6c 100644
--- a/src/libcore/ptr.rs
+++ b/src/libcore/ptr.rs
@@ -2526,7 +2526,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
 /// ptr::hash(five_ref, &mut hasher);
 /// println!("Hash is {:x}!", hasher.finish());
 /// ```
-#[stable(feature = "rust1", since = "1.0.0")] // FIXME: replace with ???
+#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56285")]
 pub fn hash<T, S: hash::Hasher>(a: &T, into: &mut S) {
     use hash::Hash;
     NonNull::from(a).hash(into)