File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1608,6 +1608,22 @@ mod traits {
1608
1608
fn ne ( & self , other : & str ) -> bool { !( * self ) . eq ( other) }
1609
1609
}
1610
1610
1611
+ #[ stable( feature = "rust1" , since = "1.24.0" ) ]
1612
+ impl < ' a > PartialEq < & ' a str > for str {
1613
+ #[ inline]
1614
+ fn eq ( & self , other : & & ' a str ) -> bool { self == * other }
1615
+ #[ inline]
1616
+ fn ne ( & self , other : & & ' a str ) -> bool { self != * other }
1617
+ }
1618
+
1619
+ #[ stable( feature = "rust1" , since = "1.24.0" ) ]
1620
+ impl < ' a > PartialEq < str > for & ' a str {
1621
+ #[ inline]
1622
+ fn eq ( & self , other : & str ) -> bool { * self == other }
1623
+ #[ inline]
1624
+ fn ne ( & self , other : & str ) -> bool { * self != other }
1625
+ }
1626
+
1611
1627
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1612
1628
impl Eq for str { }
1613
1629
You can’t perform that action at this time.
0 commit comments