Skip to content

Commit 7b429b0

Browse files
committed
Fix stability attribute for ptr::hash
1 parent 5558c07 commit 7b429b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
25262526
/// ptr::hash(five_ref, &mut hasher);
25272527
/// println!("Hash is {:x}!", hasher.finish());
25282528
/// ```
2529-
#[stable(feature = "rust1", since = "1.0.0")] // FIXME: replace with ???
2529+
#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56285")]
25302530
pub fn hash<T, S: hash::Hasher>(a: &T, into: &mut S) {
25312531
use hash::Hash;
25322532
NonNull::from(a).hash(into)

0 commit comments

Comments
 (0)