Skip to content

Commit 4138501

Browse files
committed
Make str-&str partial equality unstable
1 parent 7e4c0a0 commit 4138501

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/str/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,15 +1608,15 @@ mod traits {
16081608
fn ne(&self, other: &str) -> bool { !(*self).eq(other) }
16091609
}
16101610

1611-
#[stable(feature = "rust1", since = "1.24.0")]
1611+
#[unstable(feature = "str_str_ref_partialeq", issue = "46934")]
16121612
impl<'a> PartialEq<&'a str> for str {
16131613
#[inline]
16141614
fn eq(&self, other: &&'a str) -> bool { self == *other }
16151615
#[inline]
16161616
fn ne(&self, other: &&'a str) -> bool { self != *other }
16171617
}
16181618

1619-
#[stable(feature = "rust1", since = "1.24.0")]
1619+
#[unstable(feature = "str_str_ref_partialeq", issue = "46934")]
16201620
impl<'a> PartialEq<str> for &'a str {
16211621
#[inline]
16221622
fn eq(&self, other: &str) -> bool { *self == other }

0 commit comments

Comments
 (0)