@@ -2071,8 +2071,8 @@ mod impls {
20712071
20722072 // reference types
20732073
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 ) ) * ) => ( $(
20762076 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
20772077 #[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
20782078 impl <$A , $B > const PartialEq <$ref_B> for $ref_A
@@ -2094,10 +2094,10 @@ mod impls {
20942094 ) * )
20952095 }
20962096
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 ) ) ;
20982098
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 ) ) * ) => ( $(
21012101 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
21022102 #[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
21032103 impl <$A , $B > const PartialOrd <$ref_B> for $ref_A
@@ -2145,10 +2145,10 @@ mod impls {
21452145 ) * )
21462146 }
21472147
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 ) ) ;
21492149
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 ) , * ) => ( $(
21522152 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
21532153 #[ rustc_const_unstable( feature = "const_cmp" , issue = "143800" ) ]
21542154 impl <$A : [ const ] Ord + PointeeSized > const Ord for $ref_A
@@ -2165,5 +2165,5 @@ mod impls {
21652165 ) * )
21662166 }
21672167
2168- ord_eq_impl! ( & A => A , & mut A => A ) ;
2168+ impl_ord_eq! ( < A > for & A , & mut A ) ;
21692169}
0 commit comments