]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/nonzero.rs
core: Split apart the global `core` feature
[rust.git] / src / libcore / nonzero.rs
index 32522794254f683eb7a2894f0400a91f225d2205..1b5fa4e0e950b9ba113e16c143f6103452812d0d 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 //! Exposes the NonZero lang item which provides optimization hints.
+#![unstable(feature = "nonzero",
+            reason = "needs an RFC to flesh out the design")]
 
 use marker::Sized;
 use ops::{CoerceUnsized, Deref};
@@ -33,7 +35,6 @@ unsafe impl Zeroable for u64 {}
 /// NULL or 0 that might allow certain optimizations.
 #[lang = "non_zero"]
 #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
-#[unstable(feature = "core")]
 pub struct NonZero<T: Zeroable>(T);
 
 impl<T: Zeroable> NonZero<T> {