about summary refs log tree commit diff
path: root/src/libcore/num/mod.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-02-16 11:33:22 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-05-16 19:08:41 +0200
commitee85bfdcc23de49bbc565142efff87b14a7fc775 (patch)
tree9164f38859cb5d230e1c7140134e07239a7bb3d5 /src/libcore/num/mod.rs
parent2a3f5367a23a769a068c37460db336de427c4b48 (diff)
downloadrust-ee85bfdcc23de49bbc565142efff87b14a7fc775.tar.gz
rust-ee85bfdcc23de49bbc565142efff87b14a7fc775.zip
Make core::nonzero private
It is now an implementation detail of ptr::NonNull and num::NonZero*
Diffstat (limited to 'src/libcore/num/mod.rs')
-rw-r--r--src/libcore/num/mod.rs4
1 files changed, 1 insertions, 3 deletions
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.
                 ///