From 6fab3f9c693e1699d9056ec64e3c950ad3f7bfb3 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Tue, 4 Dec 2018 07:48:20 +0000 Subject: [PATCH] Make ptr::hash take a raw painter like ptr::eq --- src/libcore/ptr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 0213b310efaa..606dd765ce1d 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2534,7 +2534,7 @@ pub fn eq(a: *const T, b: *const T) -> bool { /// assert_eq!(actual, expected); /// ``` #[unstable(feature = "ptr_hash", reason = "newly added", issue = "56286")] -pub fn hash(hashee: &T, into: &mut S) { +pub fn hash(hashee: *const T, into: &mut S) { use hash::Hash; NonNull::from(hashee).hash(into) }