We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b8fda9f + 8a6ca24 commit 3b0d7daCopy full SHA for 3b0d7da
src/libcore/ptr.rs
@@ -2544,7 +2544,7 @@ pub fn eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
2544
/// assert_eq!(actual, expected);
2545
/// ```
2546
#[unstable(feature = "ptr_hash", reason = "newly added", issue = "56286")]
2547
-pub fn hash<T, S: hash::Hasher>(hashee: *const T, into: &mut S) {
+pub fn hash<T: ?Sized, S: hash::Hasher>(hashee: *const T, into: &mut S) {
2548
use hash::Hash;
2549
hashee.hash(into);
2550
}
0 commit comments