about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-03-24 11:15:10 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-03-30 18:13:05 +0200
commitcea018f290f05b32ca6b5bcb2f8599d20b5de75c (patch)
treef2a76df76f7cb2215674d4b2efbc87710e026548 /src/libstd
parent051050dab9b39d29c8a5978bc79c7895dfa1118b (diff)
downloadrust-cea018f290f05b32ca6b5bcb2f8599d20b5de75c.tar.gz
rust-cea018f290f05b32ca6b5bcb2f8599d20b5de75c.zip
Deprecate signed std::num::NonZeroI* with a call for use cases
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/num.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/num.rs b/src/libstd/num.rs
index 547b8c7c925..4b975dd912a 100644
--- a/src/libstd/num.rs
+++ b/src/libstd/num.rs
@@ -22,6 +22,7 @@ pub use core::num::{FpCategory, ParseIntError, ParseFloatError, TryFromIntError}
 pub use core::num::Wrapping;
 
 #[unstable(feature = "nonzero", issue = "49137")]
+#[allow(deprecated)]
 pub use core::num::{
     NonZeroU8, NonZeroI8, NonZeroU16, NonZeroI16, NonZeroU32, NonZeroI32,
     NonZeroU64, NonZeroI64, NonZeroU128, NonZeroI128, NonZeroUsize, NonZeroIsize,