diff options
| author | Lzu Tao <taolzu@gmail.com> | 2019-04-10 03:21:11 +0000 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2019-04-10 18:28:34 +0200 |
| commit | ca1f5025320b570a7c87e4a54e58aaa6a5ef37e2 (patch) | |
| tree | d1da4be25f72f67a1d0d562ccbd5b1d36ecfe17c /src/libstd | |
| parent | a7af34a050b3e8c210abbfb51c1e860ad6e3a64a (diff) | |
| download | rust-ca1f5025320b570a7c87e4a54e58aaa6a5ef37e2.tar.gz rust-ca1f5025320b570a7c87e4a54e58aaa6a5ef37e2.zip | |
Re-export NonZero signed variant in std
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/num.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/num.rs b/src/libstd/num.rs index c80b9a56704..dcdaa84c897 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 fmt; #[cfg(test)] use ops::{Add, Sub, Mul, Div, Rem}; |
