summary refs log tree commit diff
path: root/src/libstd/num.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-10 18:44:27 +0000
committerbors <bors@rust-lang.org>2019-04-10 18:44:27 +0000
commit91856ed52c58aa5ba66a015354d1cc69e9779bdf (patch)
tree4fc556da55164e5750f30c59f49998f6c0d4bd68 /src/libstd/num.rs
parenta7af34a050b3e8c210abbfb51c1e860ad6e3a64a (diff)
parentc19ca84699a05cb834021fcfe44e3ee5ba3de751 (diff)
downloadrust-1.34.0.tar.gz
rust-1.34.0.zip
Auto merge of #59843 - pietroalbini:stable-extras, r=Mark-Simulacrum 1.34.0
[stable] Cherry-pick stdlib fix

Cherry-picked:

* #59835: Re-export NonZero signed variant in std

r? @Mark-Simulacrum
cc https://github.com/rust-lang/rust/issues/59834 @rust-lang/release
Diffstat (limited to 'src/libstd/num.rs')
-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 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};