@@ -22,10 +22,7 @@ macro_rules! tuple_impls {
22
22
maybe_tuple_doc! {
23
23
$( $T) + @
24
24
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
25
- impl <$( $T: PartialEq ) ,+> PartialEq for ( $( $T, ) +)
26
- where
27
- last_type!( $( $T, ) +) : ?Sized
28
- {
25
+ impl <$( $T: PartialEq ) ,+> PartialEq for ( $( $T, ) +) {
29
26
#[ inline]
30
27
fn eq( & self , other: & ( $( $T, ) +) ) -> bool {
31
28
$( ${ ignore( $T) } self . ${ index( ) } == other. ${ index( ) } ) &&+
@@ -41,8 +38,6 @@ macro_rules! tuple_impls {
41
38
$( $T) + @
42
39
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
43
40
impl <$( $T: Eq ) ,+> Eq for ( $( $T, ) +)
44
- where
45
- last_type!( $( $T, ) +) : ?Sized
46
41
{ }
47
42
}
48
43
@@ -71,8 +66,6 @@ macro_rules! tuple_impls {
71
66
$( $T) + @
72
67
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
73
68
impl <$( $T: PartialOrd ) ,+> PartialOrd for ( $( $T, ) +)
74
- where
75
- last_type!( $( $T, ) +) : ?Sized
76
69
{
77
70
#[ inline]
78
71
fn partial_cmp( & self , other: & ( $( $T, ) +) ) -> Option <Ordering > {
@@ -101,8 +94,6 @@ macro_rules! tuple_impls {
101
94
$( $T) + @
102
95
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
103
96
impl <$( $T: Ord ) ,+> Ord for ( $( $T, ) +)
104
- where
105
- last_type!( $( $T, ) +) : ?Sized
106
97
{
107
98
#[ inline]
108
99
fn cmp( & self , other: & ( $( $T, ) +) ) -> Ordering {
@@ -205,9 +196,4 @@ macro_rules! lexical_cmp {
205
196
( $a: expr, $b: expr) => { ( $a) . cmp( & $b) } ;
206
197
}
207
198
208
- macro_rules! last_type {
209
- ( $a: ident, ) => { $a } ;
210
- ( $a: ident, $( $rest_a: ident, ) +) => { last_type!( $( $rest_a, ) +) } ;
211
- }
212
-
213
199
tuple_impls ! ( E D C B A Z Y X W V U T ) ;
0 commit comments