Rollup merge of #54203 - cuviper:stable-os_str_str_ref_eq, r=estebank
Fix the stable release of os_str_str_ref_eq
This was added and stabilized in commit 02503029b8, but while that
claimed to be for 1.28.0, it didn't actually make it until 1.29.0.
Fixes #54195.
This commit is contained in:
@@ -420,14 +420,14 @@ impl PartialEq<OsString> for str {
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "os_str_str_ref_eq", since = "1.28.0")]
|
||||
#[stable(feature = "os_str_str_ref_eq", since = "1.29.0")]
|
||||
impl<'a> PartialEq<&'a str> for OsString {
|
||||
fn eq(&self, other: &&'a str) -> bool {
|
||||
**self == **other
|
||||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "os_str_str_ref_eq", since = "1.28.0")]
|
||||
#[stable(feature = "os_str_str_ref_eq", since = "1.29.0")]
|
||||
impl<'a> PartialEq<OsString> for &'a str {
|
||||
fn eq(&self, other: &OsString) -> bool {
|
||||
**other == **self
|
||||
|
||||
Reference in New Issue
Block a user