diff options
| author | Michael Howell <michael@notriddle.com> | 2022-06-11 10:32:39 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-06-11 10:32:39 -0700 |
| commit | 28bd1a4847ab2f016e0b191a1dbd15b48675e84d (patch) | |
| tree | a41568fdf804ef5c448376256897b71f66e7c0ee /library/core/src | |
| parent | 26f04ebfa96aaaef4358e32a01b6ba0d0aa84835 (diff) | |
| download | rust-28bd1a4847ab2f016e0b191a1dbd15b48675e84d.tar.gz rust-28bd1a4847ab2f016e0b191a1dbd15b48675e84d.zip | |
docs: make all the variadic impls use `(T, ...)` exactly
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/fmt/mod.rs | 2 | ||||
| -rw-r--r-- | library/core/src/hash/mod.rs | 24 | ||||
| -rw-r--r-- | library/core/src/tuple.rs | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index 5a9370a88ec..1c66089fad6 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -2352,7 +2352,7 @@ macro_rules! last_type { ($a:ident, $($rest_a:ident,)+) => { last_type!($($rest_a,)+) }; } -tuple! { T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, } +tuple! { E, D, C, B, A, Z, Y, X, W, V, U, T, } #[stable(feature = "rust1", since = "1.0.0")] impl<T: Debug> Debug for [T] { diff --git a/library/core/src/hash/mod.rs b/library/core/src/hash/mod.rs index 9a4c877b2d3..2c152fe1b2c 100644 --- a/library/core/src/hash/mod.rs +++ b/library/core/src/hash/mod.rs @@ -918,18 +918,18 @@ mod impls { } impl_hash_tuple! {} - impl_hash_tuple! { A } - impl_hash_tuple! { A B } - impl_hash_tuple! { A B C } - impl_hash_tuple! { A B C D } - impl_hash_tuple! { A B C D E } - impl_hash_tuple! { A B C D E F } - impl_hash_tuple! { A B C D E F G } - impl_hash_tuple! { A B C D E F G H } - impl_hash_tuple! { A B C D E F G H I } - impl_hash_tuple! { A B C D E F G H I J } - impl_hash_tuple! { A B C D E F G H I J K } - impl_hash_tuple! { A B C D E F G H I J K L } + impl_hash_tuple! { T } + impl_hash_tuple! { T B } + impl_hash_tuple! { T B C } + impl_hash_tuple! { T B C D } + impl_hash_tuple! { T B C D E } + impl_hash_tuple! { T B C D E F } + impl_hash_tuple! { T B C D E F G } + impl_hash_tuple! { T B C D E F G H } + impl_hash_tuple! { T B C D E F G H I } + impl_hash_tuple! { T B C D E F G H I J } + impl_hash_tuple! { T B C D E F G H I J K } + impl_hash_tuple! { T B C D E F G H I J K L } #[stable(feature = "rust1", since = "1.0.0")] impl<T: Hash> Hash for [T] { diff --git a/library/core/src/tuple.rs b/library/core/src/tuple.rs index c6e3d045a78..d0d8c5faa44 100644 --- a/library/core/src/tuple.rs +++ b/library/core/src/tuple.rs @@ -154,4 +154,4 @@ macro_rules! last_type { ($a:ident, $($rest_a:ident,)+) => { last_type!($($rest_a,)+) }; } -tuple_impls!(A B C D E F G H I J K L); +tuple_impls!(E D C B A Z Y X W V U T); |
