about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLzu Tao <taolzu@gmail.com>2019-04-10 03:21:11 +0000
committerLzu Tao <taolzu@gmail.com>2019-04-10 03:21:11 +0000
commit2f975529a04766c0a7624672f0a02fc1b7b44118 (patch)
tree9fa020494770f12fbefdc2f9d23d4a0be884af95
parent3750348daff89741e3153e0e120aa70a45ff5b68 (diff)
downloadrust-2f975529a04766c0a7624672f0a02fc1b7b44118.tar.gz
rust-2f975529a04766c0a7624672f0a02fc1b7b44118.zip
Re-export NonZero signed variant in std
-rw-r--r--src/libstd/num.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/num.rs b/src/libstd/num.rs
index 828d5720eec..d67d0b55a79 100644
--- a/src/libstd/num.rs
+++ b/src/libstd/num.rs
@@ -13,6 +13,8 @@ pub use core::num::Wrapping;
 
 #[stable(feature = "nonzero", since = "1.28.0")]
 pub use core::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU128, NonZeroUsize};
+#[stable(feature = "signed_nonzero", since = "1.34.0")]
+pub use core::num::{NonZeroI8, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI128, NonZeroIsize};
 
 #[cfg(test)] use crate::fmt;
 #[cfg(test)] use crate::ops::{Add, Sub, Mul, Div, Rem};