about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-01-17 10:48:10 +0100
committerPietro Albini <pietro@pietroalbini.org>2019-01-17 10:48:10 +0100
commitd158ef64e820041110bc5519abb9012010cc2cf0 (patch)
treef350478ce1c491f53c6fe55bd8a0fc98c2cc37e9 /src/libcore/num
parent722b4d695964906807b12379577bce5ee3d23e08 (diff)
downloadrust-d158ef64e820041110bc5519abb9012010cc2cf0.tar.gz
rust-d158ef64e820041110bc5519abb9012010cc2cf0.zip
Revert "Auto merge of #57670 - rust-lang:beta-next, r=Mark-Simulacrum"
This reverts commit 722b4d695964906807b12379577bce5ee3d23e08, reversing
changes made to 956dba47d33fc8b2bdabcd50e5bfed264b570382.
Diffstat (limited to 'src/libcore/num')
-rw-r--r--src/libcore/num/mod.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 3a3fd27d525..6827364c0f8 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -47,8 +47,6 @@ assert_eq!(size_of::<Option<std::num::", stringify!($Ty), ">>(), size_of::<", st
                 #[stable(feature = "nonzero", since = "1.28.0")]
                 #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
                 #[repr(transparent)]
-                // FIXME: the rustc_layout_scalar_valid_range_start attr is marked as unused
-                #[cfg_attr(stage0, allow(unused_attributes))]
                 #[rustc_layout_scalar_valid_range_start(1)]
                 pub struct $Ty($Int);
             }
@@ -70,8 +68,6 @@ assert_eq!(size_of::<Option<std::num::", stringify!($Ty), ">>(), size_of::<", st
                 #[inline]
                 pub fn new(n: $Int) -> Option<Self> {
                     if n != 0 {
-                        // FIXME: this unsafe block is actually needed
-                        #[cfg_attr(stage0, allow(unused_unsafe))]
                         Some(unsafe { $Ty(n) })
                     } else {
                         None