Auto merge of #29480 - apasel422:coerce-unique, r=alexcrichton
Closes rust-lang/rfcs#1343.
This commit is contained in:
commit
ee88e04e77
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user