Auto merge of #29480 - apasel422:coerce-unique, r=alexcrichton

Closes rust-lang/rfcs#1343.
This commit is contained in:
bors 2015-10-31 01:58:51 +00:00
commit ee88e04e77

View file

@ -534,6 +534,10 @@ impl<T: ?Sized> Unique<T> {
}
}
#[cfg(not(stage0))] // remove cfg after new snapshot
#[unstable(feature = "unique", issue = "27730")]
impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsize<U> { }
#[unstable(feature = "unique", issue= "27730")]
impl<T:?Sized> Deref for Unique<T> {
type Target = *mut T;