Skip to content

Commit a763b43

Browse files
committed
remove broken Arc implementations
1 parent a76f1ea commit a763b43

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

library/std/src/ffi/os_str.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,14 +1717,6 @@ impl AsRef<OsStr> for Rc<str> {
17171717
}
17181718
}
17191719

1720-
#[stable(feature = "smart_ptr_as_ref_str", since = "CURRENT_RUSTC_VERSION")]
1721-
impl AsRef<OsStr> for Arc<str> {
1722-
#[inline]
1723-
fn as_ref(&self) -> &OsStr {
1724-
(&**self).as_ref()
1725-
}
1726-
}
1727-
17281720
impl FromInner<Buf> for OsString {
17291721
#[inline]
17301722
fn from_inner(buf: Buf) -> OsString {

library/std/src/path.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3374,14 +3374,6 @@ impl AsRef<Path> for Rc<str> {
33743374
}
33753375
}
33763376

3377-
#[stable(feature = "smart_ptr_as_ref_str", since = "CURRENT_RUSTC_VERSION")]
3378-
impl AsRef<Path> for Arc<str> {
3379-
#[inline]
3380-
fn as_ref(&self) -> &Path {
3381-
Path::new(self)
3382-
}
3383-
}
3384-
33853377
#[stable(feature = "path_into_iter", since = "1.6.0")]
33863378
impl<'a> IntoIterator for &'a PathBuf {
33873379
type Item = &'a OsStr;

0 commit comments

Comments
 (0)