From 04266daf779c960f9037afe1eafc0acd68d85b84 Mon Sep 17 00:00:00 2001 From: Andrew Paseltiner Date: Fri, 30 Oct 2015 16:38:29 -0400 Subject: [PATCH] Implement `CoerceUnsized` for `Unique` Closes rust-lang/rfcs#1343. --- src/libcore/ptr.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcore/ptr.rs b/src/libcore/ptr.rs index 52a888d797b..d8650953819 100644 --- a/src/libcore/ptr.rs +++ b/src/libcore/ptr.rs @@ -532,6 +532,10 @@ impl Unique { } } +#[cfg(not(stage0))] // remove cfg after new snapshot +#[unstable(feature = "unique", issue = "27730")] +impl CoerceUnsized> for Unique where T: Unsize { } + #[unstable(feature = "unique", issue= "27730")] impl Deref for Unique { type Target = *mut T;