]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/hash/mod.rs
Auto merge of #62069 - Centril:rollup-m8n4uw7, r=Centril
[rust.git] / src / libcore / hash / mod.rs
index 98150fd9f821ea5679eec470a382340aa23dae6b..38e38642842403bf88843ca2f8a22fd1e2b94f7d 100644 (file)
@@ -617,11 +617,11 @@ fn hash<H: Hasher>(&self, _state: &mut H) {}
 
         ( $($name:ident)+) => (
             #[stable(feature = "rust1", since = "1.0.0")]
-            impl<$($name: Hash),*> Hash for ($($name,)*) where last_type!($($name,)+): ?Sized {
+            impl<$($name: Hash),+> Hash for ($($name,)+) where last_type!($($name,)+): ?Sized {
                 #[allow(non_snake_case)]
                 fn hash<S: Hasher>(&self, state: &mut S) {
-                    let ($(ref $name,)*) = *self;
-                    $($name.hash(state);)*
+                    let ($(ref $name,)+) = *self;
+                    $($name.hash(state);)+
                 }
             }
         );