Skip to content

Commit

Permalink
Auto merge of #29480 - apasel422:coerce-unique, r=alexcrichton
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Oct 31, 2015
2 parents 11ba81e + 04266da commit ee88e04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libcore/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee88e04

Please sign in to comment.