about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-05-16 18:07:35 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-05-16 19:11:31 +0200
commit89d9ca9b50e01cbc5dc78a26f15cc8c435bbc5a4 (patch)
treec40036f7d742280743edf2e413aaf91a6d1cb808 /src/libstd
parentc536639c1e1ce7e2b4816a40f2e954c581431456 (diff)
downloadrust-89d9ca9b50e01cbc5dc78a26f15cc8c435bbc5a4.tar.gz
rust-89d9ca9b50e01cbc5dc78a26f15cc8c435bbc5a4.zip
Stabilize num::NonZeroU*
Tracking issue: https://github.com/rust-lang/rust/issues/49137
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/lib.rs1
-rw-r--r--src/libstd/num.rs3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index d41739ab02c..9cdc6a21622 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -277,7 +277,6 @@
 #![feature(needs_panic_runtime)]
 #![feature(never_type)]
 #![feature(exhaustive_patterns)]
-#![feature(nonzero)]
 #![feature(num_bits_bytes)]
 #![feature(old_wrapping)]
 #![feature(on_unimplemented)]
diff --git a/src/libstd/num.rs b/src/libstd/num.rs
index aa806b947b0..3f90c1fa3b1 100644
--- a/src/libstd/num.rs
+++ b/src/libstd/num.rs
@@ -21,8 +21,7 @@ pub use core::num::{FpCategory, ParseIntError, ParseFloatError, TryFromIntError}
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use core::num::Wrapping;
 
-#[unstable(feature = "nonzero", issue = "49137")]
-#[allow(deprecated)]
+#[stable(feature = "nonzero", since = "1.28.0")]
 pub use core::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU128, NonZeroUsize};
 
 #[cfg(test)] use fmt;