about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorZachary S <zasample18+github@gmail.com>2024-11-19 13:50:04 -0600
committerZachary S <zasample18+github@gmail.com>2024-11-19 16:25:54 -0600
commitdbd35041f57cb613357dc434d39190811de99e24 (patch)
tree7ead10d556ca214e88e8c7ba1737411c39e35de6 /library/alloc/src
parentde5e1ddcf5a14908c4edc102e0e7e7e0768ccbf4 (diff)
downloadrust-dbd35041f57cb613357dc434d39190811de99e24.tar.gz
rust-dbd35041f57cb613357dc434d39190811de99e24.zip
UniqueRc: PinCoerceUnsized and DerefPure
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/rc.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs
index a18111d9a7c..f5999c25722 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -2232,12 +2232,20 @@ impl<T: ?Sized, A: Allocator> Deref for Rc<T, A> {
 #[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
 unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for Rc<T, A> {}
 
+//#[unstable(feature = "unique_rc_arc", issue = "112566")]
+#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
+unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for UniqueRc<T, A> {}
+
 #[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
 unsafe impl<T: ?Sized, A: Allocator> PinCoerceUnsized for Weak<T, A> {}
 
 #[unstable(feature = "deref_pure_trait", issue = "87121")]
 unsafe impl<T: ?Sized, A: Allocator> DerefPure for Rc<T, A> {}
 
+//#[unstable(feature = "unique_rc_arc", issue = "112566")]
+#[unstable(feature = "deref_pure_trait", issue = "87121")]
+unsafe impl<T: ?Sized, A: Allocator> DerefPure for UniqueRc<T, A> {}
+
 #[unstable(feature = "legacy_receiver_trait", issue = "none")]
 impl<T: ?Sized> LegacyReceiver for Rc<T> {}
 
@@ -4031,9 +4039,6 @@ impl<T: ?Sized, A: Allocator> Deref for UniqueRc<T, A> {
     }
 }
 
-#[unstable(feature = "pin_coerce_unsized_trait", issue = "123430")]
-unsafe impl<T: ?Sized> PinCoerceUnsized for UniqueRc<T> {}
-
 #[unstable(feature = "unique_rc_arc", issue = "112566")]
 impl<T: ?Sized, A: Allocator> DerefMut for UniqueRc<T, A> {
     fn deref_mut(&mut self) -> &mut T {