diff --git a/src/libcore/nonzero.rs b/src/libcore/nonzero.rs index abaf2529323..53c866c39dd 100644 --- a/src/libcore/nonzero.rs +++ b/src/libcore/nonzero.rs @@ -11,12 +11,14 @@ //! Exposes the NonZero lang item which provides optimization hints. use ops::Deref; +use ptr::Unique; /// Unsafe trait to indicate what types are usable with the NonZero struct pub unsafe trait Zeroable {} unsafe impl Zeroable for *const T {} unsafe impl Zeroable for *mut T {} +unsafe impl Zeroable for Unique { } unsafe impl Zeroable for int {} unsafe impl Zeroable for uint {} unsafe impl Zeroable for i8 {}