]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/hash/mod.rs
Rollup merge of #106414 - cuviper:libs-review, r=Mark-Simulacrum
[rust.git] / library / core / src / hash / mod.rs
index c755afa39eb608de9ffffd576b0b4d5fa443b0f5..71a0d1825efec359cdf4b11fa9717ca2d082118f 100644 (file)
@@ -199,7 +199,7 @@ pub trait Hash {
     /// println!("Hash is {:x}!", hasher.finish());
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
-    fn hash<H: Hasher>(&self, state: &mut H);
+    fn hash<H: ~const Hasher>(&self, state: &mut H);
 
     /// Feeds a slice of this type into the given [`Hasher`].
     ///
@@ -980,7 +980,7 @@ fn hash<H: ~const Hasher>(&self, state: &mut H) {
     #[rustc_const_unstable(feature = "const_hash", issue = "104061")]
     impl<T: ?Sized + ~const Hash> const Hash for &mut T {
         #[inline]
-        fn hash<H: Hasher>(&self, state: &mut H) {
+        fn hash<H: ~const Hasher>(&self, state: &mut H) {
             (**self).hash(state);
         }
     }