Skip to content

Commit ee88e04

Browse files
committed
Auto merge of #29480 - apasel422:coerce-unique, r=alexcrichton
Closes rust-lang/rfcs#1343.
2 parents 11ba81e + 04266da commit ee88e04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/ptr.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,10 @@ impl<T: ?Sized> Unique<T> {
534534
}
535535
}
536536

537+
#[cfg(not(stage0))] // remove cfg after new snapshot
538+
#[unstable(feature = "unique", issue = "27730")]
539+
impl<T: ?Sized, U: ?Sized> CoerceUnsized<Unique<U>> for Unique<T> where T: Unsize<U> { }
540+
537541
#[unstable(feature = "unique", issue= "27730")]
538542
impl<T:?Sized> Deref for Unique<T> {
539543
type Target = *mut T;

0 commit comments

Comments
 (0)