File tree 1 file changed +1
-9
lines changed
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ use crate::vec::Vec;
359
359
/// [Deref]: core::ops::Deref "ops::Deref"
360
360
/// [`Deref`]: core::ops::Deref "ops::Deref"
361
361
/// [`as_str()`]: String::as_str
362
- #[ derive( PartialOrd , Eq , Ord ) ]
362
+ #[ derive( PartialEq , PartialOrd , Eq , Ord ) ]
363
363
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
364
364
#[ cfg_attr( not( test) , lang = "String" ) ]
365
365
pub struct String {
@@ -2207,14 +2207,6 @@ impl<'a, 'b> Pattern<'a> for &'b String {
2207
2207
}
2208
2208
}
2209
2209
2210
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
2211
- impl PartialEq for String {
2212
- #[ inline]
2213
- fn eq ( & self , other : & String ) -> bool {
2214
- PartialEq :: eq ( & self [ ..] , & other[ ..] )
2215
- }
2216
- }
2217
-
2218
2210
macro_rules! impl_eq {
2219
2211
( $lhs: ty, $rhs: ty) => {
2220
2212
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments