From 8bf4651e2cbe04511c7e92279073e46e33d3b0fc Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Wed, 1 Jul 2015 15:51:17 -0400 Subject: [PATCH] Implement CoerceUnsized for rc::Weak Fixes #26704 --- src/liballoc/rc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 3dfafd0a378b..d461eeea0b7e 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -734,6 +734,8 @@ pub struct Weak { impl !marker::Send for Weak {} impl !marker::Sync for Weak {} +impl, U: ?Sized> CoerceUnsized> for Weak {} + #[unstable(feature = "rc_weak", reason = "Weak pointers may not belong in this module.")] impl Weak {