From 8a6ca24bcb1264e7c41ff54d92d9e7dc0a07076f Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Wed, 12 Dec 2018 09:41:03 -0800 Subject: [PATCH] Allow ptr::hash to accept fat pointers --- 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 b11ae30327226..adcd0f2e7c6e9 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2544,7 +2544,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: *const T, into: &mut S) { +pub fn hash(hashee: *const T, into: &mut S) { use hash::Hash; hashee.hash(into); }