Deprecate signed std::num::NonZeroI* with a call for use cases

This commit is contained in:
Simon Sapin
2018-03-24 11:15:10 +01:00
parent 051050dab9
commit cea018f290
3 changed files with 25 additions and 7 deletions

View File

@@ -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,