@@ -2344,12 +2344,12 @@ impl<'a, T: 'a + Copy> Extend<&'a T> for Vec<T> {
23442344}
23452345
23462346macro_rules! __impl_slice_eq1 {
2347- ( [ $( $vars: tt) * ] $lhs: ty, $rhs: ty, $( $constraints : tt ) * ) => {
2348- #[ stable ( feature = "rust1" , since = "1.0.0" ) ]
2347+ ( [ $( $vars: tt) * ] $lhs: ty, $rhs: ty $( where $ty : ty : $bound : ident ) ? , # [ $stability : meta ] ) => {
2348+ #[ $stability ]
23492349 impl <A , B , $( $vars) * > PartialEq <$rhs> for $lhs
23502350 where
23512351 A : PartialEq <B >,
2352- $( $constraints ) *
2352+ $( $ty : $bound ) ?
23532353 {
23542354 #[ inline]
23552355 fn eq( & self , other: & $rhs) -> bool { self [ ..] == other[ ..] }
@@ -2359,16 +2359,16 @@ macro_rules! __impl_slice_eq1 {
23592359 }
23602360}
23612361
2362- __impl_slice_eq1 ! { [ ] Vec <A >, Vec <B >, }
2363- __impl_slice_eq1 ! { [ ] Vec <A >, & [ B ] , }
2364- __impl_slice_eq1 ! { [ ] Vec <A >, & mut [ B ] , }
2365- __impl_slice_eq1 ! { [ ] & [ A ] , Vec <B >, }
2366- __impl_slice_eq1 ! { [ ] & mut [ A ] , Vec <B >, }
2367- __impl_slice_eq1 ! { [ ] Cow <' _, [ A ] >, Vec <B >, A : Clone }
2368- __impl_slice_eq1 ! { [ ] Cow <' _, [ A ] >, & [ B ] , A : Clone }
2369- __impl_slice_eq1 ! { [ ] Cow <' _, [ A ] >, & mut [ B ] , A : Clone }
2370- __impl_slice_eq1 ! { [ const N : usize ] Vec <A >, [ B ; N ] , [ B ; N ] : LengthAtMost32 }
2371- __impl_slice_eq1 ! { [ const N : usize ] Vec <A >, & [ B ; N ] , [ B ; N ] : LengthAtMost32 }
2362+ __impl_slice_eq1 ! { [ ] Vec <A >, Vec <B >, # [ stable ( feature = "rust1" , since = "1.0.0" ) ] }
2363+ __impl_slice_eq1 ! { [ ] Vec <A >, & [ B ] , # [ stable ( feature = "rust1" , since = "1.0.0" ) ] }
2364+ __impl_slice_eq1 ! { [ ] Vec <A >, & mut [ B ] , # [ stable ( feature = "rust1" , since = "1.0.0" ) ] }
2365+ __impl_slice_eq1 ! { [ ] & [ A ] , Vec <B >, # [ stable ( feature = "partialeq_vec_for_ref_slice" , since = "1.46.0" ) ] }
2366+ __impl_slice_eq1 ! { [ ] & mut [ A ] , Vec <B >, # [ stable ( feature = "partialeq_vec_for_ref_slice" , since = "1.46.0" ) ] }
2367+ __impl_slice_eq1 ! { [ ] Cow <' _, [ A ] >, Vec <B > where A : Clone , # [ stable ( feature = "rust1" , since = "1.0.0" ) ] }
2368+ __impl_slice_eq1 ! { [ ] Cow <' _, [ A ] >, & [ B ] where A : Clone , # [ stable ( feature = "rust1" , since = "1.0.0" ) ] }
2369+ __impl_slice_eq1 ! { [ ] Cow <' _, [ A ] >, & mut [ B ] where A : Clone , # [ stable ( feature = "rust1" , since = "1.0.0" ) ] }
2370+ __impl_slice_eq1 ! { [ const N : usize ] Vec <A >, [ B ; N ] where [ B ; N ] : LengthAtMost32 , # [ stable ( feature = "rust1" , since = "1.0.0" ) ] }
2371+ __impl_slice_eq1 ! { [ const N : usize ] Vec <A >, & [ B ; N ] where [ B ; N ] : LengthAtMost32 , # [ stable ( feature = "rust1" , since = "1.0.0" ) ] }
23722372
23732373// NOTE: some less important impls are omitted to reduce code bloat
23742374// FIXME(Centril): Reconsider this?
0 commit comments