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) }