From ee85bfdcc23de49bbc565142efff87b14a7fc775 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 16 Feb 2018 11:33:22 +0100 Subject: Make core::nonzero private It is now an implementation detail of ptr::NonNull and num::NonZero* --- src/libcore/num/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libcore/num') diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index a062fbda5ba..ef914a0fc5c 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -16,7 +16,7 @@ use convert::TryFrom; use fmt; use intrinsics; use mem; -#[allow(deprecated)] use nonzero::NonZero; +use nonzero::NonZero; use ops; use str::FromStr; @@ -49,11 +49,9 @@ macro_rules! nonzero_integers { /// ``` #[$stability] #[$deprecation] - #[allow(deprecated)] #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] pub struct $Ty(NonZero<$Int>); - #[allow(deprecated)] impl $Ty { /// Create a non-zero without checking the value. /// -- cgit 1.4.1-3-g733a5