We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fab3f9 commit ad76569Copy full SHA for ad76569
src/libcore/ptr.rs
@@ -2536,7 +2536,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
2536
#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56286")]
2537
pub fn hash<T, S: hash::Hasher>(hashee: *const T, into: &mut S) {
2538
use hash::Hash;
2539
- NonNull::from(hashee).hash(into)
+ hashee.hash(into);
2540
}
2541
2542
// Impls for function pointers
0 commit comments