We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4c0a0 commit 4138501Copy full SHA for 4138501
src/libcore/str/mod.rs
@@ -1608,15 +1608,15 @@ mod traits {
1608
fn ne(&self, other: &str) -> bool { !(*self).eq(other) }
1609
}
1610
1611
- #[stable(feature = "rust1", since = "1.24.0")]
+ #[unstable(feature = "str_str_ref_partialeq", issue = "46934")]
1612
impl<'a> PartialEq<&'a str> for str {
1613
#[inline]
1614
fn eq(&self, other: &&'a str) -> bool { self == *other }
1615
1616
fn ne(&self, other: &&'a str) -> bool { self != *other }
1617
1618
1619
1620
impl<'a> PartialEq<str> for &'a str {
1621
1622
fn eq(&self, other: &str) -> bool { *self == other }
0 commit comments