Skip to content

Commit 28bd1a4

Browse files
committed
docs: make all the variadic impls use (T, ...) exactly
1 parent 26f04eb commit 28bd1a4

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

library/core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ macro_rules! last_type {
23522352
($a:ident, $($rest_a:ident,)+) => { last_type!($($rest_a,)+) };
23532353
}
23542354

2355-
tuple! { T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, }
2355+
tuple! { E, D, C, B, A, Z, Y, X, W, V, U, T, }
23562356

23572357
#[stable(feature = "rust1", since = "1.0.0")]
23582358
impl<T: Debug> Debug for [T] {

library/core/src/hash/mod.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -918,18 +918,18 @@ mod impls {
918918
}
919919

920920
impl_hash_tuple! {}
921-
impl_hash_tuple! { A }
922-
impl_hash_tuple! { A B }
923-
impl_hash_tuple! { A B C }
924-
impl_hash_tuple! { A B C D }
925-
impl_hash_tuple! { A B C D E }
926-
impl_hash_tuple! { A B C D E F }
927-
impl_hash_tuple! { A B C D E F G }
928-
impl_hash_tuple! { A B C D E F G H }
929-
impl_hash_tuple! { A B C D E F G H I }
930-
impl_hash_tuple! { A B C D E F G H I J }
931-
impl_hash_tuple! { A B C D E F G H I J K }
932-
impl_hash_tuple! { A B C D E F G H I J K L }
921+
impl_hash_tuple! { T }
922+
impl_hash_tuple! { T B }
923+
impl_hash_tuple! { T B C }
924+
impl_hash_tuple! { T B C D }
925+
impl_hash_tuple! { T B C D E }
926+
impl_hash_tuple! { T B C D E F }
927+
impl_hash_tuple! { T B C D E F G }
928+
impl_hash_tuple! { T B C D E F G H }
929+
impl_hash_tuple! { T B C D E F G H I }
930+
impl_hash_tuple! { T B C D E F G H I J }
931+
impl_hash_tuple! { T B C D E F G H I J K }
932+
impl_hash_tuple! { T B C D E F G H I J K L }
933933

934934
#[stable(feature = "rust1", since = "1.0.0")]
935935
impl<T: Hash> Hash for [T] {

library/core/src/tuple.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@ macro_rules! last_type {
154154
($a:ident, $($rest_a:ident,)+) => { last_type!($($rest_a,)+) };
155155
}
156156

157-
tuple_impls!(A B C D E F G H I J K L);
157+
tuple_impls!(E D C B A Z Y X W V U T);

0 commit comments

Comments
 (0)