@@ -2071,8 +2071,8 @@ mod impls {
2071
2071
2072
2072
// reference types
2073
2073
2074
- macro_rules! partial_eq_impl {
2075
- ( $ ( ( $ref_A : ty => $ A : ident, $ref_B : ty => $ B : ident ) ) * ) => ( $(
2074
+ macro_rules! impl_partial_eq {
2075
+ ( <$ A : ident , $ B : ident> for $ ( ( $ref_A : ty, $ref_B : ty ) ) * ) => ( $(
2076
2076
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2077
2077
#[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
2078
2078
impl <$A , $B > const PartialEq <$ref_B> for $ref_A
@@ -2094,10 +2094,10 @@ mod impls {
2094
2094
) * )
2095
2095
}
2096
2096
2097
- partial_eq_impl! ( ( & A => A , & B => B ) ( & A => A , & mut B => B ) ( & mut A => A , & B => B ) ( & mut A => A , & mut B => B ) ) ;
2097
+ impl_partial_eq! ( < A , B > for ( & A , & B ) ( & A , & mut B ) ( & mut A , & B ) ( & mut A , & mut B ) ) ;
2098
2098
2099
- macro_rules! partial_ord_impl {
2100
- ( $ ( ( $ref_A : ty => $ A : ident, $ref_B : ty => $ B : ident ) ) * ) => ( $(
2099
+ macro_rules! impl_partial_ord {
2100
+ ( <$ A : ident , $ B : ident> for $ ( ( $ref_A : ty, $ref_B : ty ) ) * ) => ( $(
2101
2101
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2102
2102
#[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
2103
2103
impl <$A , $B > const PartialOrd <$ref_B> for $ref_A
@@ -2145,10 +2145,10 @@ mod impls {
2145
2145
) * )
2146
2146
}
2147
2147
2148
- partial_ord_impl! ( ( & A => A , & B => B ) /*(&A => A , &mut B => B ) (&mut A => A , &B => B )*/ ( & mut A => A , & mut B => B ) ) ;
2148
+ impl_partial_ord! ( < A , B > for ( & A , & B ) /*(&A, &mut B) (&mut A, &B)*/ ( & mut A , & mut B ) ) ;
2149
2149
2150
- macro_rules! ord_eq_impl {
2151
- ( $ ( $ref_A : ty => $ A : ident ) , * ) => ( $(
2150
+ macro_rules! impl_ord_eq {
2151
+ ( <$ A : ident> for $ ( $ref_A : ty ) , * ) => ( $(
2152
2152
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2153
2153
#[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
2154
2154
impl <$A : [ const ] Ord + PointeeSized > const Ord for $ref_A
@@ -2165,5 +2165,5 @@ mod impls {
2165
2165
) * )
2166
2166
}
2167
2167
2168
- ord_eq_impl! ( & A => A , & mut A => A ) ;
2168
+ impl_ord_eq! ( < A > for & A , & mut A ) ;
2169
2169
}
0 commit comments