about summary refs log tree commit diff
path: root/library/core/src/tuple.rs
diff options
context:
space:
mode:
authorCaio <c410.f3r@gmail.com>2022-04-08 10:30:24 -0300
committerCaio <c410.f3r@gmail.com>2022-04-08 10:30:24 -0300
commite946aa3a745037cefbaed578d53282247f74d80f (patch)
tree5f3d60b78bf45b5c82d33a164ea03d3d06c6c4a5 /library/core/src/tuple.rs
parente4f5b15b8832334eca2c0bd3929eb3969f1d166d (diff)
downloadrust-e946aa3a745037cefbaed578d53282247f74d80f.tar.gz
rust-e946aa3a745037cefbaed578d53282247f74d80f.zip
Left overs of #95761
Diffstat (limited to 'library/core/src/tuple.rs')
-rw-r--r--library/core/src/tuple.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/library/core/src/tuple.rs b/library/core/src/tuple.rs
index fdf58c50e48..f9a317f663c 100644
--- a/library/core/src/tuple.rs
+++ b/library/core/src/tuple.rs
@@ -5,7 +5,7 @@ use crate::cmp::*;
 
 // macro for implementing n-ary tuple functions and operations
 macro_rules! tuple_impls {
-    ( $( $Tuple:ident( $( $T:ident )+ ) )+ ) => {
+    ( $( ( $( $T:ident )+ ) )+ ) => {
         $(
             #[stable(feature = "rust1", since = "1.0.0")]
             impl<$($T:PartialEq),+> PartialEq for ($($T,)+) where last_type!($($T,)+): ?Sized {
@@ -106,16 +106,16 @@ macro_rules! last_type {
 }
 
 tuple_impls! {
-    Tuple1(A)
-    Tuple2(A B)
-    Tuple3(A B C)
-    Tuple4(A B C D)
-    Tuple5(A B C D E)
-    Tuple6(A B C D E F)
-    Tuple7(A B C D E F G)
-    Tuple8(A B C D E F G H)
-    Tuple9(A B C D E F G H I)
-    Tuple10(A B C D E F G H I J)
-    Tuple11(A B C D E F G H I J K)
-    Tuple12(A B C D E F G H I J K L)
+    (A)
+    (A B)
+    (A B C)
+    (A B C D)
+    (A B C D E)
+    (A B C D E F)
+    (A B C D E F G)
+    (A B C D E F G H)
+    (A B C D E F G H I)
+    (A B C D E F G H I J)
+    (A B C D E F G H I J K)
+    (A B C D E F G H I J K L)
 }