We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 097b5db commit 6fab3f9Copy full SHA for 6fab3f9
src/libcore/ptr.rs
@@ -2534,7 +2534,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
2534
/// assert_eq!(actual, expected);
2535
/// ```
2536
#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56286")]
2537
-pub fn hash<T, S: hash::Hasher>(hashee: &T, into: &mut S) {
+pub fn hash<T, S: hash::Hasher>(hashee: *const T, into: &mut S) {
2538
use hash::Hash;
2539
NonNull::from(hashee).hash(into)
2540
}
0 commit comments