Skip to content

Commit cc5a7bd

Browse files
committed
remove AsRef implementations for Rc<String>
1 parent a763b43 commit cc5a7bd

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

library/alloc/src/rc.rs

-14
Original file line numberDiff line numberDiff line change
@@ -3655,20 +3655,6 @@ impl<T: ?Sized, A: Allocator> AsRef<T> for Rc<T, A> {
36553655
}
36563656
}
36573657

3658-
#[stable(feature = "smart_ptr_as_ref_str", since = "CURRENT_RUSTC_VERSION")]
3659-
impl<A: Allocator> AsRef<str> for Rc<String, A> {
3660-
fn as_ref(&self) -> &str {
3661-
(&**self).as_ref()
3662-
}
3663-
}
3664-
3665-
#[stable(feature = "smart_ptr_as_ref_str", since = "CURRENT_RUSTC_VERSION")]
3666-
impl<A: Allocator> AsRef<[u8]> for Rc<String, A> {
3667-
fn as_ref(&self) -> &[u8] {
3668-
(&**self).as_ref()
3669-
}
3670-
}
3671-
36723658
#[stable(feature = "smart_ptr_as_ref_str", since = "CURRENT_RUSTC_VERSION")]
36733659
impl<A: Allocator> AsRef<[u8]> for Rc<str, A> {
36743660
fn as_ref(&self) -> &[u8] {

0 commit comments

Comments
 (0)