diff options
| author | Dale Wijnand <dale.wijnand@gmail.com> | 2018-12-04 08:06:26 +0000 |
|---|---|---|
| committer | Dale Wijnand <dale.wijnand@gmail.com> | 2018-12-04 08:06:26 +0000 |
| commit | ad765695d1a831b9e1c11102a1e8680af86a89bd (patch) | |
| tree | 16cc8ace3b0acf41554a915f35dd27458b27e9e5 /src/libcore | |
| parent | 6fab3f9c693e1699d9056ec64e3c950ad3f7bfb3 (diff) | |
| download | rust-ad765695d1a831b9e1c11102a1e8680af86a89bd.tar.gz rust-ad765695d1a831b9e1c11102a1e8680af86a89bd.zip | |
Fix ptr::hash, just hash the raw pointer
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 606dd765ce1..4be89180d67 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -2536,7 +2536,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool { #[unstable(feature = "ptr_hash", reason = "newly added", issue = "56286")] pub fn hash<T, S: hash::Hasher>(hashee: *const T, into: &mut S) { use hash::Hash; - NonNull::from(hashee).hash(into) + hashee.hash(into); } // Impls for function pointers |
