@@ -22,10 +22,7 @@ macro_rules! tuple_impls {
2222 maybe_tuple_doc! {
2323 $( $T) + @
2424 #[ 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, ) +) {
2926 #[ inline]
3027 fn eq( & self , other: & ( $( $T, ) +) ) -> bool {
3128 $( ${ ignore( $T) } self . ${ index( ) } == other. ${ index( ) } ) &&+
@@ -41,8 +38,6 @@ macro_rules! tuple_impls {
4138 $( $T) + @
4239 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
4340 impl <$( $T: Eq ) ,+> Eq for ( $( $T, ) +)
44- where
45- last_type!( $( $T, ) +) : ?Sized
4641 { }
4742 }
4843
@@ -71,8 +66,6 @@ macro_rules! tuple_impls {
7166 $( $T) + @
7267 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
7368 impl <$( $T: PartialOrd ) ,+> PartialOrd for ( $( $T, ) +)
74- where
75- last_type!( $( $T, ) +) : ?Sized
7669 {
7770 #[ inline]
7871 fn partial_cmp( & self , other: & ( $( $T, ) +) ) -> Option <Ordering > {
@@ -101,8 +94,6 @@ macro_rules! tuple_impls {
10194 $( $T) + @
10295 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
10396 impl <$( $T: Ord ) ,+> Ord for ( $( $T, ) +)
104- where
105- last_type!( $( $T, ) +) : ?Sized
10697 {
10798 #[ inline]
10899 fn cmp( & self , other: & ( $( $T, ) +) ) -> Ordering {
@@ -205,9 +196,4 @@ macro_rules! lexical_cmp {
205196 ( $a: expr, $b: expr) => { ( $a) . cmp( & $b) } ;
206197}
207198
208- macro_rules! last_type {
209- ( $a: ident, ) => { $a } ;
210- ( $a: ident, $( $rest_a: ident, ) +) => { last_type!( $( $rest_a, ) +) } ;
211- }
212-
213199tuple_impls ! ( E D C B A Z Y X W V U T ) ;
0 commit comments