There was an error while loading. Please reload this page.
2 parents 692a366 + 83f8088 commit 0ba812fCopy full SHA for 0ba812f
src/libcore/nonzero.rs
@@ -11,12 +11,14 @@
11
//! Exposes the NonZero lang item which provides optimization hints.
12
13
use ops::Deref;
14
+use ptr::Unique;
15
16
/// Unsafe trait to indicate what types are usable with the NonZero struct
17
pub unsafe trait Zeroable {}
18
19
unsafe impl<T> Zeroable for *const T {}
20
unsafe impl<T> Zeroable for *mut T {}
21
+unsafe impl<T> Zeroable for Unique<T> { }
22
unsafe impl Zeroable for int {}
23
unsafe impl Zeroable for uint {}
24
unsafe impl Zeroable for i8 {}
0 commit comments