]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #54601 - cuviper:prep-1.31, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sun, 30 Sep 2018 01:45:50 +0000 (01:45 +0000)
committerbors <bors@rust-lang.org>
Sun, 30 Sep 2018 01:45:50 +0000 (01:45 +0000)
Bump to 1.31.0 and bootstrap from 1.30 beta

Closes #54594.

74 files changed:
src/bootstrap/channel.rs
src/liballoc/lib.rs
src/liballoc/tests/lib.rs
src/liballoc_jemalloc/lib.rs
src/liballoc_system/lib.rs
src/libarena/lib.rs
src/libcore/lib.rs
src/libcore/mem.rs
src/libcore/nonzero.rs
src/libcore/num/mod.rs
src/libfmt_macros/lib.rs
src/libgraphviz/lib.rs
src/libpanic_abort/lib.rs
src/libpanic_unwind/lib.rs
src/libproc_macro/lib.rs
src/libprofiler_builtins/lib.rs
src/librustc/lib.rs
src/librustc/middle/region.rs
src/librustc/ty/context.rs
src/librustc_allocator/lib.rs
src/librustc_apfloat/lib.rs
src/librustc_asan/lib.rs
src/librustc_borrowck/lib.rs
src/librustc_codegen_llvm/lib.rs
src/librustc_codegen_utils/lib.rs
src/librustc_cratesio_shim/src/lib.rs
src/librustc_data_structures/lib.rs
src/librustc_driver/lib.rs
src/librustc_errors/lib.rs
src/librustc_incremental/lib.rs
src/librustc_lint/lib.rs
src/librustc_llvm/lib.rs
src/librustc_lsan/lib.rs
src/librustc_metadata/lib.rs
src/librustc_mir/lib.rs
src/librustc_msan/lib.rs
src/librustc_passes/lib.rs
src/librustc_platform_intrinsics/lib.rs
src/librustc_plugin/lib.rs
src/librustc_privacy/lib.rs
src/librustc_resolve/lib.rs
src/librustc_save_analysis/lib.rs
src/librustc_target/lib.rs
src/librustc_traits/lib.rs
src/librustc_tsan/lib.rs
src/librustc_typeck/lib.rs
src/librustdoc/lib.rs
src/libserialize/lib.rs
src/libstd/alloc.rs
src/libstd/lib.rs
src/libstd/panicking.rs
src/libsyntax/lib.rs
src/libsyntax_ext/lib.rs
src/libsyntax_pos/lib.rs
src/libterm/lib.rs
src/libtest/lib.rs
src/libunwind/lib.rs
src/stage0.txt
src/test/compile-fail-fulldeps/auxiliary/lint_for_crate.rs
src/test/compile-fail-fulldeps/auxiliary/lint_group_plugin_test.rs
src/test/compile-fail-fulldeps/auxiliary/lint_plugin_test.rs
src/test/run-pass-fulldeps/auxiliary/lint_for_crate.rs
src/test/run-pass-fulldeps/proc-macro/auxiliary/issue-40001-plugin.rs
src/test/run-pass/macros/macro-first-set.rs
src/test/run-pass/macros/macro-pub-matcher.rs
src/test/ui-fulldeps/auxiliary/lint_group_plugin_test.rs
src/test/ui-fulldeps/auxiliary/lint_plugin_test.rs
src/test/ui-fulldeps/auxiliary/lint_tool_test.rs
src/test/ui/issues/issue-42755.rs
src/test/ui/issues/issue-42755.stderr
src/test/ui/lint/unreachable_pub-pub_crate.rs
src/test/ui/lint/unreachable_pub-pub_crate.stderr
src/test/ui/lint/unreachable_pub.rs
src/test/ui/lint/unreachable_pub.stderr

index fa2b58fb2daa711714407124900514f49798d31b..91bec69cfa401913105aa44418b6b86a88e28fbd 100644 (file)
@@ -24,7 +24,7 @@
 use config::Config;
 
 // The version number
-pub const CFG_RELEASE_NUM: &str = "1.30.0";
+pub const CFG_RELEASE_NUM: &str = "1.31.0";
 
 pub struct GitInfo {
     inner: Option<Info>,
index f92075cc84e509a739ad3ef8984c77d2f1f27437..5f9ceb8599cf51321e4c15542d6708004d2fc7ef 100644 (file)
@@ -76,7 +76,6 @@
 
 #![cfg_attr(not(test), feature(fn_traits))]
 #![cfg_attr(not(test), feature(generator_trait))]
-#![cfg_attr(not(stage0), feature(nll))]
 #![cfg_attr(test, feature(test))]
 
 #![feature(allocator_api)]
@@ -87,8 +86,7 @@
 #![feature(box_syntax)]
 #![feature(cfg_target_has_atomic)]
 #![feature(coerce_unsized)]
-#![cfg_attr(stage0, feature(const_fn))]
-#![cfg_attr(not(stage0), feature(min_const_fn))]
+#![feature(min_const_fn)]
 #![feature(core_intrinsics)]
 #![feature(custom_attribute)]
 #![feature(dropck_eyepatch)]
@@ -99,6 +97,7 @@
 #![feature(lang_items)]
 #![feature(libc)]
 #![feature(needs_allocator)]
+#![feature(nll)]
 #![feature(optin_builtin_traits)]
 #![feature(pattern)]
 #![feature(pin)]
index 6ff39227555fe179872fd8597071228679b73885..b9ba319a943caa9d76644d8f12f3538444884d67 100644 (file)
@@ -11,8 +11,7 @@
 #![feature(allocator_api)]
 #![feature(alloc_system)]
 #![feature(box_syntax)]
-#![cfg_attr(stage0, feature(const_fn))]
-#![cfg_attr(not(stage0), feature(min_const_fn))]
+#![feature(min_const_fn)]
 #![feature(drain_filter)]
 #![feature(exact_size_is_empty)]
 #![feature(pattern)]
index bdf0e37a2e672d8de3ae3d274b31a294c12918e8..0065e84a7ad1a88a14199ff8035483c8b3dcf73e 100644 (file)
@@ -16,7 +16,7 @@
 #![feature(core_intrinsics)]
 #![feature(libc)]
 #![feature(linkage)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(staged_api)]
 #![feature(rustc_attrs)]
 #![cfg_attr(dummy_jemalloc, allow(dead_code, unused_extern_crates))]
@@ -90,7 +90,6 @@ fn align_to_flags(align: usize, size: usize) -> c_int {
     // ABI
 
     #[rustc_std_internal_symbol]
-    #[cfg_attr(stage0, no_mangle)]
     pub unsafe extern fn __rde_alloc(size: usize, align: usize) -> *mut u8 {
         let flags = align_to_flags(align, size);
         let ptr = mallocx(size as size_t, flags) as *mut u8;
@@ -98,7 +97,6 @@ fn align_to_flags(align: usize, size: usize) -> c_int {
     }
 
     #[rustc_std_internal_symbol]
-    #[cfg_attr(stage0, no_mangle)]
     pub unsafe extern fn __rde_dealloc(ptr: *mut u8,
                                        size: usize,
                                        align: usize) {
@@ -107,7 +105,6 @@ fn align_to_flags(align: usize, size: usize) -> c_int {
     }
 
     #[rustc_std_internal_symbol]
-    #[cfg_attr(stage0, no_mangle)]
     pub unsafe extern fn __rde_realloc(ptr: *mut u8,
                                        _old_size: usize,
                                        align: usize,
@@ -118,7 +115,6 @@ fn align_to_flags(align: usize, size: usize) -> c_int {
     }
 
     #[rustc_std_internal_symbol]
-    #[cfg_attr(stage0, no_mangle)]
     pub unsafe extern fn __rde_alloc_zeroed(size: usize, align: usize) -> *mut u8 {
         let ptr = if align <= MIN_ALIGN && align <= size {
             calloc(size as size_t, 1) as *mut u8
index 65204ebf71413027a9bf79f0c0ff048907d03f74..3ef03ec6d585aa268ff3e519e34aaf4a0605dc06 100644 (file)
@@ -17,7 +17,7 @@
 
 #![feature(allocator_api)]
 #![feature(core_intrinsics)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(staged_api)]
 #![feature(rustc_attrs)]
 #![cfg_attr(any(unix, target_os = "cloudabi", target_os = "redox"), feature(libc))]
index 6ad703180c224eecd7e6777c5beb18c17ea8fe5f..b02ae75eff86b99b11f49c2b4debb7215eef19d0 100644 (file)
@@ -26,7 +26,7 @@
 #![feature(alloc)]
 #![feature(core_intrinsics)]
 #![feature(dropck_eyepatch)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(raw_vec_internals)]
 #![cfg_attr(test, feature(test))]
 
index 675e73e952cc2ca011c055a949d38c75e99b18e2..94e84106328e2fea26e43e8c21300c8a817a355f 100644 (file)
@@ -91,7 +91,7 @@
 #![feature(lang_items)]
 #![feature(link_llvm_intrinsics)]
 #![feature(never_type)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(exhaustive_patterns)]
 #![feature(macro_at_most_once_rep)]
 #![feature(no_core)]
index c99c9f96f12d67d712b0fef3a413440d57e67245..9871f4966786db6c9adb64b46571690d4425dcce 100644 (file)
@@ -285,19 +285,10 @@ pub fn forget<T>(t: T) {
 /// [alignment]: ./fn.align_of.html
 #[inline]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[cfg(not(stage0))]
 pub const fn size_of<T>() -> usize {
     intrinsics::size_of::<T>()
 }
 
-#[inline]
-#[stable(feature = "rust1", since = "1.0.0")]
-#[cfg(stage0)]
-/// Ceci n'est pas la documentation
-pub const fn size_of<T>() -> usize {
-    unsafe { intrinsics::size_of::<T>() }
-}
-
 /// Returns the size of the pointed-to value in bytes.
 ///
 /// This is usually the same as `size_of::<T>()`. However, when `T` *has* no
@@ -343,20 +334,10 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
 #[inline]
 #[stable(feature = "rust1", since = "1.0.0")]
 #[rustc_deprecated(reason = "use `align_of` instead", since = "1.2.0")]
-#[cfg(not(stage0))]
 pub fn min_align_of<T>() -> usize {
     intrinsics::min_align_of::<T>()
 }
 
-#[inline]
-#[stable(feature = "rust1", since = "1.0.0")]
-#[rustc_deprecated(reason = "use `align_of` instead", since = "1.2.0")]
-#[cfg(stage0)]
-/// Ceci n'est pas la documentation
-pub fn min_align_of<T>() -> usize {
-    unsafe { intrinsics::min_align_of::<T>() }
-}
-
 /// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to.
 ///
 /// Every reference to a value of the type `T` must be a multiple of this number.
@@ -395,19 +376,10 @@ pub fn min_align_of_val<T: ?Sized>(val: &T) -> usize {
 /// ```
 #[inline]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[cfg(not(stage0))]
 pub const fn align_of<T>() -> usize {
     intrinsics::min_align_of::<T>()
 }
 
-#[inline]
-#[stable(feature = "rust1", since = "1.0.0")]
-#[cfg(stage0)]
-/// Ceci n'est pas la documentation
-pub const fn align_of<T>() -> usize {
-    unsafe { intrinsics::min_align_of::<T>() }
-}
-
 /// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to.
 ///
 /// Every reference to a value of the type `T` must be a multiple of this number.
index 30067d7e163d21bf43e1f9ab466109c48a553efb..118e75e1ee70469bb275185650ab904a0effc251 100644 (file)
@@ -14,8 +14,7 @@
 
 /// A wrapper type for raw pointers and integers that will never be
 /// NULL or 0 that might allow certain optimizations.
-#[cfg_attr(stage0, lang = "non_zero")]
-#[cfg_attr(not(stage0), rustc_layout_scalar_valid_range_start(1))]
+#[rustc_layout_scalar_valid_range_start(1)]
 #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
 #[repr(transparent)]
 pub(crate) struct NonZero<T>(pub(crate) T);
index c4b59738478dc0faa45e92b4a1d8d24b2ff5d691..f054580cba7bc02cd6a1a35d35f24c13df637397 100644 (file)
@@ -348,14 +348,6 @@ pub const fn trailing_zeros(self) -> u32 {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn rotate_left(self, n: u32) -> Self {
-            (self as $UnsignedT).rotate_left(n) as Self
-        }
-
         doc_comment! {
             concat!("Shifts the bits to the left by a specified amount, `n`,
 wrapping the truncated bits to the end of the resulting integer.
@@ -375,20 +367,11 @@ pub fn rotate_left(self, n: u32) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_rotate")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn rotate_left(self, n: u32) -> Self {
                 (self as $UnsignedT).rotate_left(n) as Self
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn rotate_right(self, n: u32) -> Self {
-            (self as $UnsignedT).rotate_right(n) as Self
-        }
-
         doc_comment! {
             concat!("Shifts the bits to the right by a specified amount, `n`,
 wrapping the truncated bits to the beginning of the resulting
@@ -409,7 +392,6 @@ pub fn rotate_right(self, n: u32) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_rotate")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn rotate_right(self, n: u32) -> Self {
                 (self as $UnsignedT).rotate_right(n) as Self
             }
@@ -437,14 +419,6 @@ pub const fn swap_bytes(self) -> Self {
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "reverse_bits", issue = "48763")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn reverse_bits(self) -> Self {
-            (self as $UnsignedT).reverse_bits() as Self
-        }
-
         doc_comment! {
             concat!("Reverses the bit pattern of the integer.
 
@@ -463,7 +437,6 @@ pub fn reverse_bits(self) -> Self {
             #[unstable(feature = "reverse_bits", issue = "48763")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn reverse_bits(self) -> Self {
                 (self as $UnsignedT).reverse_bits() as Self
             }
@@ -1014,16 +987,6 @@ pub fn saturating_pow(self, exp: u32) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_add(self, rhs: Self) -> Self {
-            unsafe {
-                intrinsics::overflowing_add(self, rhs)
-            }
-        }
-
         doc_comment! {
             concat!("Wrapping (modular) addition. Computes `self + rhs`, wrapping around at the
 boundary of the type.
@@ -1041,7 +1004,6 @@ pub fn wrapping_add(self, rhs: Self) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_add(self, rhs: Self) -> Self {
                 unsafe {
                     intrinsics::overflowing_add(self, rhs)
@@ -1049,16 +1011,6 @@ pub const fn wrapping_add(self, rhs: Self) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_sub(self, rhs: Self) -> Self {
-            unsafe {
-                intrinsics::overflowing_sub(self, rhs)
-            }
-        }
-
         doc_comment! {
             concat!("Wrapping (modular) subtraction. Computes `self - rhs`, wrapping around at the
 boundary of the type.
@@ -1076,7 +1028,6 @@ pub fn wrapping_sub(self, rhs: Self) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_sub(self, rhs: Self) -> Self {
                 unsafe {
                     intrinsics::overflowing_sub(self, rhs)
@@ -1084,16 +1035,6 @@ pub const fn wrapping_sub(self, rhs: Self) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_mul(self, rhs: Self) -> Self {
-            unsafe {
-                intrinsics::overflowing_mul(self, rhs)
-            }
-        }
-
         doc_comment! {
             concat!("Wrapping (modular) multiplication. Computes `self * rhs`, wrapping around at
 the boundary of the type.
@@ -1110,7 +1051,6 @@ pub fn wrapping_mul(self, rhs: Self) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_mul(self, rhs: Self) -> Self {
                 unsafe {
                     intrinsics::overflowing_mul(self, rhs)
@@ -1254,16 +1194,6 @@ pub fn wrapping_neg(self) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "num_wrapping", since = "1.2.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_shl(self, rhs: u32) -> Self {
-            unsafe {
-                intrinsics::unchecked_shl(self, (rhs & ($BITS - 1)) as $SelfT)
-            }
-        }
-
         doc_comment! {
             concat!("Panic-free bitwise shift-left; yields `self << mask(rhs)`, where `mask` removes
 any high-order bits of `rhs` that would cause the shift to exceed the bitwidth of the type.
@@ -1285,7 +1215,6 @@ pub fn wrapping_shl(self, rhs: u32) -> Self {
             #[stable(feature = "num_wrapping", since = "1.2.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_shl(self, rhs: u32) -> Self {
                 unsafe {
                     intrinsics::unchecked_shl(self, (rhs & ($BITS - 1)) as $SelfT)
@@ -1293,16 +1222,6 @@ pub const fn wrapping_shl(self, rhs: u32) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "num_wrapping", since = "1.2.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_shr(self, rhs: u32) -> Self {
-            unsafe {
-                intrinsics::unchecked_shr(self, (rhs & ($BITS - 1)) as $SelfT)
-            }
-        }
-
         doc_comment! {
             concat!("Panic-free bitwise shift-right; yields `self >> mask(rhs)`, where `mask`
 removes any high-order bits of `rhs` that would cause the shift to exceed the bitwidth of the type.
@@ -1324,7 +1243,6 @@ pub fn wrapping_shr(self, rhs: u32) -> Self {
             #[stable(feature = "num_wrapping", since = "1.2.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_shr(self, rhs: u32) -> Self {
                 unsafe {
                     intrinsics::unchecked_shr(self, (rhs & ($BITS - 1)) as $SelfT)
@@ -1403,18 +1321,6 @@ pub fn wrapping_pow(self, mut exp: u32) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_add(self, rhs: Self) -> (Self, bool) {
-            let (a, b) = unsafe {
-                intrinsics::add_with_overflow(self as $ActualT,
-                                                rhs as $ActualT)
-            };
-            (a as Self, b)
-        }
-
         doc_comment! {
             concat!("Calculates `self` + `rhs`
 
@@ -1435,7 +1341,6 @@ pub fn overflowing_add(self, rhs: Self) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_add(self, rhs: Self) -> (Self, bool) {
                 let (a, b) = unsafe {
                     intrinsics::add_with_overflow(self as $ActualT,
@@ -1445,18 +1350,6 @@ pub const fn overflowing_add(self, rhs: Self) -> (Self, bool) {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_sub(self, rhs: Self) -> (Self, bool) {
-            let (a, b) = unsafe {
-                intrinsics::sub_with_overflow(self as $ActualT,
-                                                rhs as $ActualT)
-            };
-            (a as Self, b)
-        }
-
         doc_comment! {
             concat!("Calculates `self` - `rhs`
 
@@ -1477,7 +1370,6 @@ pub fn overflowing_sub(self, rhs: Self) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_sub(self, rhs: Self) -> (Self, bool) {
                 let (a, b) = unsafe {
                     intrinsics::sub_with_overflow(self as $ActualT,
@@ -1487,18 +1379,6 @@ pub const fn overflowing_sub(self, rhs: Self) -> (Self, bool) {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_mul(self, rhs: Self) -> (Self, bool) {
-            let (a, b) = unsafe {
-                intrinsics::mul_with_overflow(self as $ActualT,
-                                                rhs as $ActualT)
-            };
-            (a as Self, b)
-        }
-
         doc_comment! {
             concat!("Calculates the multiplication of `self` and `rhs`.
 
@@ -1517,7 +1397,6 @@ pub fn overflowing_mul(self, rhs: Self) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_mul(self, rhs: Self) -> (Self, bool) {
                 let (a, b) = unsafe {
                     intrinsics::mul_with_overflow(self as $ActualT,
@@ -1688,14 +1567,6 @@ pub fn overflowing_neg(self) -> (Self, bool) {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_shl(self, rhs: u32) -> (Self, bool) {
-            (self.wrapping_shl(rhs), (rhs > ($BITS - 1)))
-        }
-
         doc_comment! {
             concat!("Shifts self left by `rhs` bits.
 
@@ -1715,20 +1586,11 @@ pub fn overflowing_shl(self, rhs: u32) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_shl(self, rhs: u32) -> (Self, bool) {
                 (self.wrapping_shl(rhs), (rhs > ($BITS - 1)))
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_shr(self, rhs: u32) -> (Self, bool) {
-            (self.wrapping_shr(rhs), (rhs > ($BITS - 1)))
-        }
-
         doc_comment! {
             concat!("Shifts self right by `rhs` bits.
 
@@ -1748,7 +1610,6 @@ pub fn overflowing_shr(self, rhs: u32) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_shr(self, rhs: u32) -> (Self, bool) {
                 (self.wrapping_shr(rhs), (rhs > ($BITS - 1)))
             }
@@ -2013,12 +1874,6 @@ pub fn signum(self) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn is_positive(self) -> bool { self > 0 }
-
         doc_comment! {
             concat!("Returns `true` if `self` is positive and `false` if the number is zero or
 negative.
@@ -2035,16 +1890,9 @@ pub fn is_positive(self) -> bool { self > 0 }
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_sign")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn is_positive(self) -> bool { self > 0 }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn is_negative(self) -> bool { self < 0 }
-
         doc_comment! {
             concat!("Returns `true` if `self` is negative and `false` if the number is zero or
 positive.
@@ -2061,18 +1909,9 @@ pub fn is_negative(self) -> bool { self < 0 }
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_sign")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn is_negative(self) -> bool { self < 0 }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn to_be_bytes(self) -> [u8; mem::size_of::<Self>()] {
-            self.to_be().to_ne_bytes()
-        }
-
         doc_comment! {
             concat!("Return the memory representation of this integer as a byte array in
 big-endian (network) byte order.
@@ -2088,20 +1927,11 @@ pub const fn is_negative(self) -> bool { self < 0 }
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn to_be_bytes(self) -> [u8; mem::size_of::<Self>()] {
                 self.to_be().to_ne_bytes()
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn to_le_bytes(self) -> [u8; mem::size_of::<Self>()] {
-            self.to_le().to_ne_bytes()
-        }
-
 doc_comment! {
             concat!("Return the memory representation of this integer as a byte array in
 little-endian byte order.
@@ -2117,20 +1947,11 @@ pub const fn is_negative(self) -> bool { self < 0 }
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn to_le_bytes(self) -> [u8; mem::size_of::<Self>()] {
                 self.to_le().to_ne_bytes()
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn to_ne_bytes(self) -> [u8; mem::size_of::<Self>()] {
-            unsafe { mem::transmute(self) }
-        }
-
         doc_comment! {
             concat!("
 Return the memory representation of this integer as a byte array in
@@ -2158,20 +1979,11 @@ pub const fn is_negative(self) -> bool { self < 0 }
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn to_ne_bytes(self) -> [u8; mem::size_of::<Self>()] {
                 unsafe { mem::transmute(self) }
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn from_be_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
-            Self::from_be(Self::from_ne_bytes(bytes))
-        }
-
 doc_comment! {
             concat!("Create an integer value from its representation as a byte array in
 big endian.
@@ -2187,20 +1999,11 @@ pub const fn is_negative(self) -> bool { self < 0 }
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn from_be_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
                 Self::from_be(Self::from_ne_bytes(bytes))
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn from_le_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
-            Self::from_le(Self::from_ne_bytes(bytes))
-        }
-
 doc_comment! {
             concat!("
 Create an integer value from its representation as a byte array in
@@ -2217,20 +2020,11 @@ pub const fn is_negative(self) -> bool { self < 0 }
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn from_le_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
                 Self::from_le(Self::from_ne_bytes(bytes))
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn from_ne_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
-            unsafe { mem::transmute(bytes) }
-        }
-
         doc_comment! {
             concat!("Create an integer value from its memory representation as a byte
 array in native endianness.
@@ -2257,7 +2051,6 @@ pub const fn is_negative(self) -> bool { self < 0 }
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn from_ne_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
                 unsafe { mem::transmute(bytes) }
             }
@@ -2486,16 +2279,6 @@ pub const fn trailing_zeros(self) -> u32 {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn rotate_left(self, n: u32) -> Self {
-            // Protect against undefined behaviour for over-long bit shifts
-            let n = n % $BITS;
-            (self << n) | (self >> (($BITS - n) % $BITS))
-        }
-
         doc_comment! {
             concat!("Shifts the bits to the left by a specified amount, `n`,
 wrapping the truncated bits to the end of the resulting integer.
@@ -2515,22 +2298,11 @@ pub fn rotate_left(self, n: u32) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_rotate")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn rotate_left(self, n: u32) -> Self {
                 (self << (n % $BITS)) | (self >> (($BITS - (n % $BITS)) % $BITS))
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn rotate_right(self, n: u32) -> Self {
-            // Protect against undefined behaviour for over-long bit shifts
-            let n = n % $BITS;
-            (self >> n) | (self << (($BITS - n) % $BITS))
-        }
-
         doc_comment! {
             concat!("Shifts the bits to the right by a specified amount, `n`,
 wrapping the truncated bits to the beginning of the resulting
@@ -2551,7 +2323,6 @@ pub fn rotate_right(self, n: u32) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_rotate")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn rotate_right(self, n: u32) -> Self {
                 (self >> (n % $BITS)) | (self << (($BITS - (n % $BITS)) % $BITS))
             }
@@ -2579,14 +2350,6 @@ pub const fn swap_bytes(self) -> Self {
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "reverse_bits", issue = "48763")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn reverse_bits(self) -> Self {
-            unsafe { intrinsics::bitreverse(self as $ActualT) as Self }
-        }
-
         doc_comment! {
             concat!("Reverses the bit pattern of the integer.
 
@@ -2605,7 +2368,6 @@ pub fn reverse_bits(self) -> Self {
             #[unstable(feature = "reverse_bits", issue = "48763")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn reverse_bits(self) -> Self {
                 unsafe { intrinsics::bitreverse(self as $ActualT) as Self }
             }
@@ -3094,16 +2856,6 @@ pub fn saturating_pow(self, exp: u32) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_add(self, rhs: Self) -> Self {
-            unsafe {
-                intrinsics::overflowing_add(self, rhs)
-            }
-        }
-
         doc_comment! {
             concat!("Wrapping (modular) addition. Computes `self + rhs`,
 wrapping around at the boundary of the type.
@@ -3120,7 +2872,6 @@ pub fn wrapping_add(self, rhs: Self) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_add(self, rhs: Self) -> Self {
                 unsafe {
                     intrinsics::overflowing_add(self, rhs)
@@ -3128,16 +2879,6 @@ pub const fn wrapping_add(self, rhs: Self) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_sub(self, rhs: Self) -> Self {
-            unsafe {
-                intrinsics::overflowing_sub(self, rhs)
-            }
-        }
-
         doc_comment! {
             concat!("Wrapping (modular) subtraction. Computes `self - rhs`,
 wrapping around at the boundary of the type.
@@ -3154,7 +2895,6 @@ pub fn wrapping_sub(self, rhs: Self) -> Self {
             #[stable(feature = "rust1", since = "1.0.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_sub(self, rhs: Self) -> Self {
                 unsafe {
                     intrinsics::overflowing_sub(self, rhs)
@@ -3162,16 +2902,6 @@ pub const fn wrapping_sub(self, rhs: Self) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "rust1", since = "1.0.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_mul(self, rhs: Self) -> Self {
-            unsafe {
-                intrinsics::overflowing_mul(self, rhs)
-            }
-        }
-
         /// Wrapping (modular) multiplication. Computes `self *
         /// rhs`, wrapping around at the boundary of the type.
         ///
@@ -3189,7 +2919,6 @@ pub fn wrapping_mul(self, rhs: Self) -> Self {
         #[stable(feature = "rust1", since = "1.0.0")]
         #[rustc_const_unstable(feature = "const_int_wrapping")]
         #[inline]
-        #[cfg(not(stage0))]
         pub const fn wrapping_mul(self, rhs: Self) -> Self {
             unsafe {
                 intrinsics::overflowing_mul(self, rhs)
@@ -3311,16 +3040,6 @@ pub fn wrapping_neg(self) -> Self {
             self.overflowing_neg().0
         }
 
-        /// no docs here
-        #[stable(feature = "num_wrapping", since = "1.2.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_shl(self, rhs: u32) -> Self {
-            unsafe {
-                intrinsics::unchecked_shl(self, (rhs & ($BITS - 1)) as $SelfT)
-            }
-        }
-
         doc_comment! {
             concat!("Panic-free bitwise shift-left; yields `self << mask(rhs)`,
 where `mask` removes any high-order bits of `rhs` that
@@ -3344,7 +3063,6 @@ pub fn wrapping_shl(self, rhs: u32) -> Self {
             #[stable(feature = "num_wrapping", since = "1.2.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_shl(self, rhs: u32) -> Self {
                 unsafe {
                     intrinsics::unchecked_shl(self, (rhs & ($BITS - 1)) as $SelfT)
@@ -3352,16 +3070,6 @@ pub const fn wrapping_shl(self, rhs: u32) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "num_wrapping", since = "1.2.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn wrapping_shr(self, rhs: u32) -> Self {
-            unsafe {
-                intrinsics::unchecked_shr(self, (rhs & ($BITS - 1)) as $SelfT)
-            }
-        }
-
         doc_comment! {
             concat!("Panic-free bitwise shift-right; yields `self >> mask(rhs)`,
 where `mask` removes any high-order bits of `rhs` that
@@ -3385,7 +3093,6 @@ pub fn wrapping_shr(self, rhs: u32) -> Self {
             #[stable(feature = "num_wrapping", since = "1.2.0")]
             #[rustc_const_unstable(feature = "const_int_wrapping")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn wrapping_shr(self, rhs: u32) -> Self {
                 unsafe {
                     intrinsics::unchecked_shr(self, (rhs & ($BITS - 1)) as $SelfT)
@@ -3431,18 +3138,6 @@ pub fn wrapping_pow(self, mut exp: u32) -> Self {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_add(self, rhs: Self) -> (Self, bool) {
-            let (a, b) = unsafe {
-                intrinsics::add_with_overflow(self as $ActualT,
-                                                rhs as $ActualT)
-            };
-            (a as Self, b)
-        }
-
         doc_comment! {
             concat!("Calculates `self` + `rhs`
 
@@ -3463,7 +3158,6 @@ pub fn overflowing_add(self, rhs: Self) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_add(self, rhs: Self) -> (Self, bool) {
                 let (a, b) = unsafe {
                     intrinsics::add_with_overflow(self as $ActualT,
@@ -3473,18 +3167,6 @@ pub const fn overflowing_add(self, rhs: Self) -> (Self, bool) {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_sub(self, rhs: Self) -> (Self, bool) {
-            let (a, b) = unsafe {
-                intrinsics::sub_with_overflow(self as $ActualT,
-                                                rhs as $ActualT)
-            };
-            (a as Self, b)
-        }
-
         doc_comment! {
             concat!("Calculates `self` - `rhs`
 
@@ -3506,7 +3188,6 @@ pub fn overflowing_sub(self, rhs: Self) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_sub(self, rhs: Self) -> (Self, bool) {
                 let (a, b) = unsafe {
                     intrinsics::sub_with_overflow(self as $ActualT,
@@ -3516,18 +3197,6 @@ pub const fn overflowing_sub(self, rhs: Self) -> (Self, bool) {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_mul(self, rhs: Self) -> (Self, bool) {
-            let (a, b) = unsafe {
-                intrinsics::mul_with_overflow(self as $ActualT,
-                                              rhs as $ActualT)
-            };
-            (a as Self, b)
-        }
-
         /// Calculates the multiplication of `self` and `rhs`.
         ///
         /// Returns a tuple of the multiplication along with a boolean
@@ -3548,7 +3217,6 @@ pub fn overflowing_mul(self, rhs: Self) -> (Self, bool) {
         #[stable(feature = "wrapping", since = "1.7.0")]
         #[rustc_const_unstable(feature = "const_int_overflowing")]
         #[inline]
-        #[cfg(not(stage0))]
         pub const fn overflowing_mul(self, rhs: Self) -> (Self, bool) {
             let (a, b) = unsafe {
                 intrinsics::mul_with_overflow(self as $ActualT,
@@ -3687,14 +3355,6 @@ pub fn overflowing_neg(self) -> (Self, bool) {
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_shl(self, rhs: u32) -> (Self, bool) {
-            (self.wrapping_shl(rhs), (rhs > ($BITS - 1)))
-        }
-
         doc_comment! {
             concat!("Shifts self left by `rhs` bits.
 
@@ -3715,20 +3375,11 @@ pub fn overflowing_shl(self, rhs: u32) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_shl(self, rhs: u32) -> (Self, bool) {
                 (self.wrapping_shl(rhs), (rhs > ($BITS - 1)))
             }
         }
 
-        /// no docs here
-        #[stable(feature = "wrapping", since = "1.7.0")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn overflowing_shr(self, rhs: u32) -> (Self, bool) {
-            (self.wrapping_shr(rhs), (rhs > ($BITS - 1)))
-        }
-
         doc_comment! {
             concat!("Shifts self right by `rhs` bits.
 
@@ -3749,7 +3400,6 @@ pub fn overflowing_shr(self, rhs: u32) -> (Self, bool) {
             #[stable(feature = "wrapping", since = "1.7.0")]
             #[rustc_const_unstable(feature = "const_int_overflowing")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn overflowing_shr(self, rhs: u32) -> (Self, bool) {
                 (self.wrapping_shr(rhs), (rhs > ($BITS - 1)))
             }
@@ -3992,15 +3642,7 @@ pub fn wrapping_next_power_of_two(self) -> Self {
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn to_be_bytes(self) -> [u8; mem::size_of::<Self>()] {
-            self.to_be().to_ne_bytes()
-        }
-
-                doc_comment! {
+        doc_comment! {
             concat!("Return the memory representation of this integer as a byte array in
 big-endian (network) byte order.
 
@@ -4015,20 +3657,11 @@ pub fn wrapping_next_power_of_two(self) -> Self {
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn to_be_bytes(self) -> [u8; mem::size_of::<Self>()] {
                 self.to_be().to_ne_bytes()
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn to_le_bytes(self) -> [u8; mem::size_of::<Self>()] {
-            self.to_le().to_ne_bytes()
-        }
-
         doc_comment! {
             concat!("Return the memory representation of this integer as a byte array in
 little-endian byte order.
@@ -4044,20 +3677,11 @@ pub fn wrapping_next_power_of_two(self) -> Self {
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn to_le_bytes(self) -> [u8; mem::size_of::<Self>()] {
                 self.to_le().to_ne_bytes()
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn to_ne_bytes(self) -> [u8; mem::size_of::<Self>()] {
-            unsafe { mem::transmute(self) }
-        }
-
         doc_comment! {
             concat!("
 Return the memory representation of this integer as a byte array in
@@ -4085,20 +3709,11 @@ pub fn wrapping_next_power_of_two(self) -> Self {
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn to_ne_bytes(self) -> [u8; mem::size_of::<Self>()] {
                 unsafe { mem::transmute(self) }
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn from_be_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
-            Self::from_be(Self::from_ne_bytes(bytes))
-        }
-
         doc_comment! {
             concat!("Create an integer value from its representation as a byte array in
 big endian.
@@ -4114,20 +3729,11 @@ pub fn wrapping_next_power_of_two(self) -> Self {
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn from_be_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
                 Self::from_be(Self::from_ne_bytes(bytes))
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn from_le_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
-            Self::from_le(Self::from_ne_bytes(bytes))
-        }
-
         doc_comment! {
             concat!("
 Create an integer value from its representation as a byte array in
@@ -4144,20 +3750,11 @@ pub fn wrapping_next_power_of_two(self) -> Self {
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn from_le_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
                 Self::from_le(Self::from_ne_bytes(bytes))
             }
         }
 
-        /// no docs here
-        #[unstable(feature = "int_to_from_bytes", issue = "52963")]
-        #[inline]
-        #[cfg(stage0)]
-        pub fn from_ne_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
-            unsafe { mem::transmute(bytes) }
-        }
-
         doc_comment! {
             concat!("Create an integer value from its memory representation as a byte
 array in native endianness.
@@ -4184,7 +3781,6 @@ pub fn wrapping_next_power_of_two(self) -> Self {
             #[unstable(feature = "int_to_from_bytes", issue = "52963")]
             #[rustc_const_unstable(feature = "const_int_conversion")]
             #[inline]
-            #[cfg(not(stage0))]
             pub const fn from_ne_bytes(bytes: [u8; mem::size_of::<Self>()]) -> Self {
                 unsafe { mem::transmute(bytes) }
             }
index 1bac6d22d37441effd48a7ef1e4b0755c8c67979..2a38464d7c1ee3ca742888d52669641cd5b567b3 100644 (file)
@@ -20,7 +20,7 @@
        html_playground_url = "https://play.rust-lang.org/",
        test(attr(deny(warnings))))]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 
 pub use self::Piece::*;
 pub use self::Position::*;
index 9fa48adebdf07a523411152409a2e1465c07fc37..7acadc32048bd8a49627ae0d0a107a42bc9eaa36 100644 (file)
        html_root_url = "https://doc.rust-lang.org/nightly/",
        test(attr(allow(unused_variables), deny(warnings))))]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(str_escape)]
 
 use self::LabelText::*;
index 14221f3d79e84050f91f50b58736b1281b022c8f..cf05e56e53c8464e4e9a1c5dc11b824d7e234d06 100644 (file)
 
 #![feature(core_intrinsics)]
 #![feature(libc)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(panic_runtime)]
 #![feature(staged_api)]
 #![feature(rustc_attrs)]
 
 // Rust's "try" function, but if we're aborting on panics we just call the
 // function as there's nothing else we need to do here.
-#[cfg_attr(stage0, no_mangle)]
 #[rustc_std_internal_symbol]
 pub unsafe extern fn __rust_maybe_catch_panic(f: fn(*mut u8),
                                               data: *mut u8,
@@ -51,7 +50,6 @@
 // which would break compat with XP. For now just use `intrinsics::abort` which
 // will kill us with an illegal instruction, which will do a good enough job for
 // now hopefully.
-#[cfg_attr(stage0, no_mangle)]
 #[rustc_std_internal_symbol]
 pub unsafe extern fn __rust_start_panic(_payload: usize) -> u32 {
     abort();
index 9c3fc76c307a6f7696ba4ce2f163c1dea7812602..cfe671c626bcf040b14c4b5dd328ddd535783232 100644 (file)
@@ -34,7 +34,7 @@
 #![feature(core_intrinsics)]
 #![feature(lang_items)]
 #![feature(libc)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(panic_unwind)]
 #![feature(raw)]
 #![feature(staged_api)]
index d885f9b406f59117642ac3915b2f969a420766a0..34a44bd14214865e6017da816916028310da55b3 100644 (file)
@@ -27,7 +27,7 @@
        test(no_crate_inject, attr(deny(warnings))),
        test(attr(allow(dead_code, deprecated, unused_variables, unused_mut))))]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(rustc_private)]
 #![feature(staged_api)]
 #![feature(lang_items)]
index a85593253b100f8f184ab7a336335ef7961ea5e8..8678330a5a09e2b4537d2493c904fe34fdc2480f 100644 (file)
@@ -15,5 +15,5 @@
             reason = "internal implementation detail of rustc right now",
             issue = "0")]
 #![allow(unused_features)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(staged_api)]
index 2eaf1eebb394ca5bc09ec9e754825e258de3b29d..b8731e5bb03d55f3adfd0d75accbdac08cb6651d 100644 (file)
 
 #![feature(box_patterns)]
 #![feature(box_syntax)]
-#![cfg_attr(stage0, feature(const_fn))]
-#![cfg_attr(not(stage0), feature(min_const_fn))]
+#![feature(min_const_fn)]
 #![feature(core_intrinsics)]
 #![feature(drain_filter)]
 #![cfg_attr(windows, feature(libc))]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(never_type)]
 #![feature(exhaustive_patterns)]
 #![feature(extern_types)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(non_exhaustive)]
 #![feature(proc_macro_internals)]
 #![feature(quote)]
@@ -59,7 +57,6 @@
 #![feature(refcell_replace_swap)]
 #![feature(rustc_diagnostic_macros)]
 #![feature(rustc_attrs)]
-#![cfg_attr(stage0, feature(attr_literals))]
 #![feature(slice_patterns)]
 #![feature(slice_sort_by_cached_key)]
 #![feature(specialization)]
 #![feature(step_trait)]
 #![feature(integer_atomics)]
 #![feature(test)]
-#![cfg_attr(not(stage0), feature(impl_header_lifetime_elision))]
+#![feature(impl_header_lifetime_elision)]
 #![feature(in_band_lifetimes)]
 #![feature(macro_at_most_once_rep)]
-#![cfg_attr(stage0, feature(crate_in_paths))]
 #![feature(crate_visibility_modifier)]
 
 #![recursion_limit="512"]
index 788fbcef17163581c6e5709b10cdb90ed2da018b..191fa0bc7c56609d9f49bd056680cd6836ceebb9 100644 (file)
@@ -168,8 +168,6 @@ pub struct FirstStatementIndex { .. }
 
 // compilation error if size of `ScopeData` is not the same as a `u32`
 #[allow(dead_code)]
-// only works on stage 1 when the rustc_layout_scalar_valid_range attribute actually exists
-#[cfg(not(stage0))]
 static ASSERT: () = [()][!(mem::size_of::<ScopeData>() == 4) as usize];
 
 impl Scope {
index 37ef408c6bdee6dcf8631f25b2b7649b6d735e7c..9195a426bee8fa33004d1983fbfb5f3532b3511e 100644 (file)
@@ -829,10 +829,10 @@ fn hash_stable<W: StableHasherResult>(&self,
 impl<'tcx> CommonTypes<'tcx> {
     fn new(interners: &CtxtInterners<'tcx>) -> CommonTypes<'tcx> {
         // Ensure our type representation does not grow
-        #[cfg(all(not(stage0), target_pointer_width = "64"))]
+        #[cfg(target_pointer_width = "64")]
         #[allow(dead_code)]
         static ASSERT_TY_KIND: () = [()][!(::std::mem::size_of::<ty::TyKind>() <= 24) as usize];
-        #[cfg(all(not(stage0), target_pointer_width = "64"))]
+        #[cfg(target_pointer_width = "64")]
         #[allow(dead_code)]
         static ASSERT_TYS: () = [()][!(::std::mem::size_of::<ty::TyS>() <= 32) as usize];
 
index 2a3404ee830343d10de823c8663c175394c9d7a6..a2017a4ed0ff93dc961f4a87e2560eb2af1d0a6d 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(rustc_private)]
 
 #[macro_use] extern crate log;
index d6e821d427d0580f45266e98cce22d40be793747..6ea722ba769c16181aac010ec8c025bd2eb9e5d2 100644 (file)
@@ -45,7 +45,7 @@
       html_root_url = "https://doc.rust-lang.org/nightly/")]
 #![forbid(unsafe_code)]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(try_from)]
 // See librustc_cratesio_shim/Cargo.toml for a comment explaining this.
 #[allow(unused_extern_crates)]
index b3ba86ad8a4b32af8f7f6629cca53f8891221b8f..7b845e631ffa341d88db3950e9748e75558e063b 100644 (file)
@@ -10,7 +10,7 @@
 
 #![sanitizer_runtime]
 #![feature(alloc_system)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(sanitizer_runtime)]
 #![feature(staged_api)]
 #![no_std]
index 16da8c8a3b8bf6651dc41d8b70ef0f9b7cc8341d..049c4b2bd92d88a8252da9052033c2ea3968612f 100644 (file)
@@ -14,7 +14,7 @@
 
 #![allow(non_camel_case_types)]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(quote)]
 
 #![recursion_limit="256"]
index 9cb233122c3d086d105b6d73e51d7b9259ae1aaa..71d739222b60a1adf17a11084af8f11da282b219 100644 (file)
@@ -26,7 +26,7 @@
 #![feature(in_band_lifetimes)]
 #![allow(unused_attributes)]
 #![feature(libc)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(quote)]
 #![feature(range_contains)]
 #![feature(rustc_diagnostic_macros)]
index 635819e94e8679bfed6b729350c25cb400ce79c9..03b3b20a4e772cd6467d4a00f45a44ce71c9a614 100644 (file)
@@ -19,7 +19,7 @@
 #![feature(box_patterns)]
 #![feature(box_syntax)]
 #![feature(custom_attribute)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![allow(unused_attributes)]
 #![feature(quote)]
 #![feature(rustc_diagnostic_macros)]
index 55dec45a0982471fbec041d2f11ec61102625b68..1fe70fa23b7a232684494e3385b418049702a7aa 100644 (file)
@@ -11,7 +11,7 @@
 // See Cargo.toml for a comment explaining this crate.
 #![allow(unused_extern_crates)]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 
 extern crate bitflags;
 extern crate log;
index 43ab38698062615005d81f381667c100c379a0fe..c592a5eb1e043d77c231eb5b6adf575d3150fed2 100644 (file)
@@ -27,8 +27,7 @@
 #![feature(unsize)]
 #![feature(specialization)]
 #![feature(optin_builtin_traits)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(allow_internal_unstable)]
 #![feature(vec_resize_with)]
 
index 27176a821b4affa6e50d8b0587cac045a1e14c1d..b97f5868079c4cd576581c88e62ee4fdbfb2b2e5 100644 (file)
@@ -20,7 +20,7 @@
 
 #![feature(box_syntax)]
 #![cfg_attr(unix, feature(libc))]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(option_replace)]
 #![feature(quote)]
 #![feature(rustc_diagnostic_macros)]
index 266aa3269816895dc8fbdf3c3fbc9f0983f2d4fc..12f1a43ed05338cd91420236df25cfd2df06b29d 100644 (file)
@@ -16,7 +16,7 @@
 #![allow(unused_attributes)]
 #![feature(range_contains)]
 #![cfg_attr(unix, feature(libc))]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(optin_builtin_traits)]
 
 extern crate atty;
index acdcf2b459e92efc99006e02a97e445be61aaf45..d0897a9618276fcdc2e07e36bc0a6f95d41adf76 100644 (file)
@@ -14,7 +14,7 @@
       html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
       html_root_url = "https://doc.rust-lang.org/nightly/")]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(specialization)]
 
 #![recursion_limit="256"]
index 9e0471f59fbab6548fa741fb4765ca68b20be392..98d4c87dc3b5e810159c8c271c07ecd36f77ad78 100644 (file)
@@ -26,8 +26,7 @@
 #![cfg_attr(test, feature(test))]
 #![feature(box_patterns)]
 #![feature(box_syntax)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(quote)]
 #![feature(rustc_diagnostic_macros)]
 #![feature(macro_at_most_once_rep)]
index 387660473a887dea0a2524a4bdceefbd0b78b515..1c48d84473921b79c98689c83b73b524e171688b 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(static_nobundle)]
 
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
index b3ba86ad8a4b32af8f7f6629cca53f8891221b8f..7b845e631ffa341d88db3950e9748e75558e063b 100644 (file)
@@ -10,7 +10,7 @@
 
 #![sanitizer_runtime]
 #![feature(alloc_system)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(sanitizer_runtime)]
 #![feature(staged_api)]
 #![no_std]
index 09a8bea0941b618a20933ac77ec9a5a079fb1711..7008166b9035d7248c9f29997315a768c97e1a3a 100644 (file)
@@ -15,7 +15,7 @@
 #![feature(box_patterns)]
 #![feature(libc)]
 #![feature(macro_at_most_once_rep)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(proc_macro_internals)]
 #![feature(proc_macro_quote)]
 #![feature(quote)]
index a2d70bc05c1d49c9eb7ee18556a961a153fabdf1..b3ef9eab8017da0f444876def3ea5a1dada7bb6e 100644 (file)
 #![feature(core_intrinsics)]
 #![feature(const_fn)]
 #![feature(decl_macro)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(exhaustive_patterns)]
 #![feature(range_contains)]
 #![feature(rustc_diagnostic_macros)]
 #![feature(rustc_attrs)]
-#![cfg_attr(stage0, feature(attr_literals))]
 #![feature(never_type)]
 #![feature(specialization)]
 #![feature(try_trait)]
index b3ba86ad8a4b32af8f7f6629cca53f8891221b8f..7b845e631ffa341d88db3950e9748e75558e063b 100644 (file)
@@ -10,7 +10,7 @@
 
 #![sanitizer_runtime]
 #![feature(alloc_system)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(sanitizer_runtime)]
 #![feature(staged_api)]
 #![no_std]
index d62cb00923f7047411ff3a17d5da3886d33d6ea9..42ead92783d7af2a424e713bdf92df85fc7510c5 100644 (file)
@@ -18,7 +18,7 @@
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/")]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(rustc_diagnostic_macros)]
 
 #[macro_use]
index fa7008be73a0797d7a4570886396af6b3a0db7d9..ca2628078178ba04857c16a3a7afc9a96809c444 100644 (file)
@@ -10,7 +10,7 @@
 
 #![allow(nonstandard_style)]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 
 pub struct Intrinsic {
     pub inputs: &'static [&'static Type],
index 67f53a67313f798f1f9d2979d9f57e0a949095af..2cc3f1efcb5f40b0a57b3d3b2cc95f87cec47ed0 100644 (file)
@@ -64,7 +64,7 @@
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/")]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(rustc_diagnostic_macros)]
 
 #[macro_use] extern crate syntax;
index 1fe370b44c5bcf33cbb4ac52254b50eb78a6be8a..60679d6d4304eb508c231fe69bf3b98ccddc9ec6 100644 (file)
@@ -12,7 +12,7 @@
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/")]
 
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(rustc_diagnostic_macros)]
 
 #![recursion_limit="256"]
index 5e3f7470099117c806abfd11e5eba77ee59fe066..a68c89deea5b6a070c7be0e57c6f8cf9117ecc47 100644 (file)
@@ -13,7 +13,7 @@
        html_root_url = "https://doc.rust-lang.org/nightly/")]
 
 #![feature(crate_visibility_modifier)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(rustc_diagnostic_macros)]
 #![feature(slice_sort_by_cached_key)]
 
index f6045c7b2d2df2b1123406a40153d5e544cdd0c3..1148daef8e39120f9b684c262e86ab7596815c56 100644 (file)
@@ -12,7 +12,7 @@
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/")]
 #![feature(custom_attribute)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![allow(unused_attributes)]
 
 #![recursion_limit="256"]
index c198b19ce616075e3cc55b88973ee1263478363f..93d61b80847ecb876a10191d554f6f4503a9ac02 100644 (file)
@@ -22,9 +22,8 @@
       html_root_url = "https://doc.rust-lang.org/nightly/")]
 
 #![feature(box_syntax)]
-#![cfg_attr(stage0, feature(const_fn))]
-#![cfg_attr(not(stage0), feature(min_const_fn))]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(min_const_fn)]
+#![feature(nll)]
 #![feature(slice_patterns)]
 
 #[macro_use]
index a6618efebb31017bf933de30bace186678c546e4..733804fb9b052c50a908969c3042c76498ae5aa7 100644 (file)
 //! New recursive solver modeled on Chalk's recursive solver. Most of
 //! the guts are broken up into modules; see the comments in those modules.
 
-#![cfg_attr(stage0, feature(crate_in_paths))]
 #![feature(crate_visibility_modifier)]
-#![cfg_attr(stage0, feature(extern_prelude))]
 #![feature(in_band_lifetimes)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 
 #![recursion_limit="256"]
 
index b3ba86ad8a4b32af8f7f6629cca53f8891221b8f..7b845e631ffa341d88db3950e9748e75558e063b 100644 (file)
@@ -10,7 +10,7 @@
 
 #![sanitizer_runtime]
 #![feature(alloc_system)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(sanitizer_runtime)]
 #![feature(staged_api)]
 #![no_std]
index a00a9f8613b64b75554a144fc50987ad75e5257b..1f5998d8ca39514456b8a9ec5488d33a8ea59aa9 100644 (file)
@@ -75,7 +75,7 @@
 #![feature(box_syntax)]
 #![feature(crate_visibility_modifier)]
 #![feature(exhaustive_patterns)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(quote)]
 #![feature(refcell_replace_swap)]
 #![feature(rustc_diagnostic_macros)]
index 2456a5ad14acc61e15c81d5b4cd961d9122bef72..406180c09e8e48b26c0cc7d8ab2ccb732b57d4e1 100644 (file)
@@ -16,7 +16,7 @@
 #![feature(rustc_private)]
 #![feature(box_patterns)]
 #![feature(box_syntax)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(set_stdio)]
 #![feature(slice_sort_by_cached_key)]
 #![feature(test)]
index 1f6ee3d867b17b3c7225b31a84266de1f039df8a..98b48ef291857dd59a97b2d626f418a2307fde4a 100644 (file)
@@ -24,7 +24,7 @@
 #![feature(core_intrinsics)]
 #![feature(specialization)]
 #![feature(never_type)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![cfg_attr(test, feature(test))]
 
 pub use self::serialize::{Decoder, Encoder, Decodable, Encodable};
index 6753ed4a3df6d03d50287427d2aa4a485884d40e..31fc9ed3f772d3e254a4f103866a072a9ae1d098 100644 (file)
@@ -151,14 +151,12 @@ pub mod __default_lib_allocator {
     // ABI
 
     #[rustc_std_internal_symbol]
-    #[cfg_attr(stage0, no_mangle)]
     pub unsafe extern fn __rdl_alloc(size: usize, align: usize) -> *mut u8 {
         let layout = Layout::from_size_align_unchecked(size, align);
         System.alloc(layout)
     }
 
     #[rustc_std_internal_symbol]
-    #[cfg_attr(stage0, no_mangle)]
     pub unsafe extern fn __rdl_dealloc(ptr: *mut u8,
                                        size: usize,
                                        align: usize) {
@@ -166,7 +164,6 @@ pub mod __default_lib_allocator {
     }
 
     #[rustc_std_internal_symbol]
-    #[cfg_attr(stage0, no_mangle)]
     pub unsafe extern fn __rdl_realloc(ptr: *mut u8,
                                        old_size: usize,
                                        align: usize,
@@ -176,7 +173,6 @@ pub mod __default_lib_allocator {
     }
 
     #[rustc_std_internal_symbol]
-    #[cfg_attr(stage0, no_mangle)]
     pub unsafe extern fn __rdl_alloc_zeroed(size: usize, align: usize) -> *mut u8 {
         let layout = Layout::from_size_align_unchecked(size, align);
         System.alloc_zeroed(layout)
index 1eb76d6c45ec47783b4619a8cb5b667ca85d4461..7ae4f2de4c36d16789f3d4ace9beb668b6cdc597 100644 (file)
 #![feature(cfg_target_vendor)]
 #![feature(char_error_internals)]
 #![feature(compiler_builtins_lib)]
-#![cfg_attr(stage0, feature(const_fn))]
-#![cfg_attr(not(stage0), feature(min_const_fn))]
+#![feature(min_const_fn)]
 #![feature(const_int_ops)]
 #![feature(const_ip)]
 #![feature(core_intrinsics)]
 #![feature(libc)]
 #![feature(link_args)]
 #![feature(linkage)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(needs_panic_runtime)]
 #![feature(never_type)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(exhaustive_patterns)]
 #![feature(on_unimplemented)]
 #![feature(optin_builtin_traits)]
 #![feature(rustc_attrs)]
 #![feature(rustc_const_unstable)]
 #![feature(std_internals)]
-#![feature(stdsimd)]
+#![cfg_attr(not(stage0), feature(stdsimd))]
 #![feature(shrink_to)]
 #![feature(slice_concat_ext)]
 #![feature(slice_internals)]
 #![feature(unboxed_closures)]
 #![feature(untagged_unions)]
 #![feature(unwind_attributes)]
-#![cfg_attr(stage0, feature(use_extern_macros))]
 #![feature(doc_cfg)]
 #![feature(doc_masked)]
 #![feature(doc_spotlight)]
-#![cfg_attr(all(windows, stage0), feature(used))]
 #![feature(doc_alias)]
 #![feature(doc_keyword)]
 #![feature(panic_info_message)]
-#![cfg_attr(stage0, feature(panic_implementation))]
 #![feature(non_exhaustive)]
 
 #![default_lib_allocator]
index f79c986cc89e454603eb3aa283a45d97c09461f4..df085a7f450b099640410acceff6427440379882 100644 (file)
@@ -319,8 +319,7 @@ pub fn panicking() -> bool {
 
 /// Entry point of panic from the libcore crate.
 #[cfg(not(test))]
-#[cfg_attr(stage0, panic_implementation)]
-#[cfg_attr(not(stage0), panic_handler)]
+#[panic_handler]
 #[unwind(allowed)]
 pub fn rust_begin_panic(info: &PanicInfo) -> ! {
     continue_panic_fmt(&info)
@@ -398,7 +397,7 @@ fn get(&mut self) -> &(dyn Any + Send) {
 #[unstable(feature = "libstd_sys_internals",
            reason = "used by the panic! macro",
            issue = "0")]
-#[cfg_attr(not(any(stage0, test)), lang = "begin_panic")]
+#[cfg_attr(not(test), lang = "begin_panic")]
 #[inline(never)] #[cold] // avoid code bloat at the call sites as much as possible
 pub fn begin_panic<M: Any + Send>(msg: M, file_line_col: &(&'static str, u32, u32)) -> ! {
     // Note that this should be the only allocation performed in this code path.
index a1b031a655f8577988016d249d4c967aac0e242b..9077eca18215c0010d3e57a52570f97b3e44a1bd 100644 (file)
@@ -21,7 +21,7 @@
 
 #![feature(crate_visibility_modifier)]
 #![feature(macro_at_most_once_rep)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(rustc_attrs)]
 #![feature(rustc_diagnostic_macros)]
 #![feature(slice_sort_by_cached_key)]
index 31089c9ff82cefefc9a3111d6e65b91aafcbb024..7c023fc5c9c224f6c723c17471ae1c6bd8906f1b 100644 (file)
@@ -16,7 +16,7 @@
 
 #![feature(proc_macro_internals)]
 #![feature(decl_macro)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(str_escape)]
 #![feature(quote)]
 #![feature(rustc_diagnostic_macros)]
index 67fd847a2ae9197790a0d2a71917e0cec74d84fb..45eaf1d3190f2f5ac4dc285d9b05b7f873b0629a 100644 (file)
 #![feature(const_fn)]
 #![feature(crate_visibility_modifier)]
 #![feature(custom_attribute)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(non_exhaustive)]
 #![feature(optin_builtin_traits)]
 #![feature(specialization)]
-#![feature(stdsimd)]
+#![cfg_attr(not(stage0), feature(stdsimd))]
 
 use std::borrow::Cow;
 use std::cell::Cell;
index a49fd67639dbe5210fe1118a2f1e672f8958f7b5..5ac46c2c5ebdc8cb6fdd32399fba239be8958248 100644 (file)
@@ -50,7 +50,7 @@
 #![cfg_attr(windows, feature(libc))]
 // Handle rustfmt skips
 #![feature(custom_attribute)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![allow(unused_attributes)]
 
 use std::io::prelude::*;
index f6383c19cb5e6dc61bc2f96881b59c1b710aeb4d..0e862bcf5ca46cf10f9d6e49c0775fd0fcac0256 100644 (file)
@@ -35,7 +35,7 @@
 #![feature(asm)]
 #![feature(fnbox)]
 #![cfg_attr(any(unix, target_os = "cloudabi"), feature(libc))]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(set_stdio)]
 #![feature(panic_unwind)]
 #![feature(staged_api)]
index 424a7e3d009ecaa6c930c200c7819552b7609e89..954eb9d6d03ba81b27c0ed6ed92ca2d0d85e11de 100644 (file)
@@ -13,7 +13,7 @@
 
 #![feature(cfg_target_vendor)]
 #![feature(link_cfg)]
-#![cfg_attr(not(stage0), feature(nll))]
+#![feature(nll)]
 #![feature(staged_api)]
 #![feature(unwind_attributes)]
 #![feature(static_nobundle)]
index 69e8140cdf19d64fdedce5e756e269a84d8d7515..f0967d1ba8ae6d41fe01e773643dba94c25f21e3 100644 (file)
@@ -12,7 +12,7 @@
 # source tarball for a stable release you'll likely see `1.x.0` for rustc and
 # `0.x.0` for Cargo where they were released on `date`.
 
-date: 2018-09-11
+date: 2018-09-23
 rustc: beta
 cargo: beta
 
index c965a3ed86c82d7336d47961b9a95f69935d4f84..460e28fc794f0f921556e50a2d498641303c55c3 100644 (file)
@@ -12,7 +12,6 @@
 
 #![feature(plugin_registrar, rustc_private)]
 #![feature(box_syntax)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(macro_at_most_once_rep)]
 
 #[macro_use] extern crate rustc;
index 082f15a39dd955254c7b94b62ef41ef0eeb9f295..1057649d969d171b2a9bad77cda15d5e52d487a9 100644 (file)
@@ -12,7 +12,6 @@
 
 #![feature(plugin_registrar)]
 #![feature(box_syntax, rustc_private)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(macro_at_most_once_rep)]
 
 // Load rustc as a plugin to get macros
index 315dad7eea515279f0aa1d06b15ba5ea2ded568b..b0183a3c56bc4a5dd4b236ddbf844a7582f0254d 100644 (file)
@@ -12,7 +12,6 @@
 
 #![feature(plugin_registrar)]
 #![feature(box_syntax, rustc_private)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(macro_at_most_once_rep)]
 
 extern crate syntax;
index 601003827c6a287a463e193bda77647ff4274a62..00c419a8d09e833f02adf03bb4bccda2080809c1 100644 (file)
@@ -12,7 +12,6 @@
 
 #![feature(plugin_registrar, rustc_private)]
 #![feature(box_syntax)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(macro_at_most_once_rep)]
 
 #[macro_use] extern crate rustc;
index f525e0f082a44b723facd5f3f5aae20274762a8a..e0acf340a79fdfc6faecb27f63c04d322ec81af6 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![feature(box_syntax, plugin, plugin_registrar, rustc_private)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(macro_at_most_once_rep)]
 #![crate_type = "dylib"]
 
index 984a31d4d520e8e204a33b63cc3a21ddc8f813b6..c5f82ce5f0c0659183c12023debb964f5d181d0d 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 // run-pass
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 
 //{{{ issue 40569 ==============================================================
 
index 7d8bb430232fe24589525e174b7acc1dea2a8343..8e68a3c00455f21668d2c48570409f207157efa8 100644 (file)
@@ -10,7 +10,6 @@
 
 // run-pass
 #![allow(dead_code, unused_imports)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(crate_visibility_modifier)]
 
 /**
index 082f15a39dd955254c7b94b62ef41ef0eeb9f295..1057649d969d171b2a9bad77cda15d5e52d487a9 100644 (file)
@@ -12,7 +12,6 @@
 
 #![feature(plugin_registrar)]
 #![feature(box_syntax, rustc_private)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(macro_at_most_once_rep)]
 
 // Load rustc as a plugin to get macros
index 315dad7eea515279f0aa1d06b15ba5ea2ded568b..b0183a3c56bc4a5dd4b236ddbf844a7582f0254d 100644 (file)
@@ -12,7 +12,6 @@
 
 #![feature(plugin_registrar)]
 #![feature(box_syntax, rustc_private)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(macro_at_most_once_rep)]
 
 extern crate syntax;
index e184c0919d0ecf333fc94177986d761eeb128bb2..7d2acd7aa4c86b7c106a3ff52f1dec37cfa316e4 100644 (file)
@@ -10,7 +10,6 @@
 
 #![feature(plugin_registrar)]
 #![feature(box_syntax, rustc_private)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 #![feature(macro_at_most_once_rep)]
 
 extern crate syntax;
index 46c8cb740ded7cfc3b101d87a2039115490963b2..a8458ccacc3c041e477ceba116b565e29f00a11c 100644 (file)
@@ -8,7 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 
 macro_rules! foo {
     ($($p:vis)*) => {} //~ ERROR repetition matches empty token tree
index fa736edc47f5bf8207b045f332a00575764ab0d4..bdbb99de4608fa22312e92c6bc74718ba8fc0299 100644 (file)
@@ -1,5 +1,5 @@
 error: repetition matches empty token tree
-  --> $DIR/issue-42755.rs:14:7
+  --> $DIR/issue-42755.rs:13:7
    |
 LL |     ($($p:vis)*) => {} //~ ERROR repetition matches empty token tree
    |       ^^^^^^^^
index 0089617b11c0b9a84e1c3f5db6b8731694185a69..b58bbe74c97319aa8cd5d96bd551484119426836 100644 (file)
@@ -16,7 +16,6 @@
 
 // compile-pass
 
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 
 #![allow(unused)]
 #![warn(unreachable_pub)]
index 1cbfbd211255dcef575ea683832093185fd28fe9..ed45ba8e85d46fa151924cbf00ec24437664123d 100644 (file)
@@ -1,5 +1,5 @@
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:26:5
+  --> $DIR/unreachable_pub-pub_crate.rs:25:5
    |
 LL |     pub use std::fmt;
    |     ---^^^^^^^^^^^^^^
@@ -7,14 +7,14 @@ LL |     pub use std::fmt;
    |     help: consider restricting its visibility: `pub(crate)`
    |
 note: lint level defined here
-  --> $DIR/unreachable_pub-pub_crate.rs:22:9
+  --> $DIR/unreachable_pub-pub_crate.rs:21:9
    |
 LL | #![warn(unreachable_pub)]
    |         ^^^^^^^^^^^^^^^
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:27:24
+  --> $DIR/unreachable_pub-pub_crate.rs:26:24
    |
 LL |     pub use std::env::{Args}; // braced-use has different item spans than unbraced
    |     ---                ^^^^
@@ -24,7 +24,7 @@ LL |     pub use std::env::{Args}; // braced-use has different item spans than u
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:29:5
+  --> $DIR/unreachable_pub-pub_crate.rs:28:5
    |
 LL |     pub struct Hydrogen {
    |     ---^^^^^^^^^^^^^^^^
@@ -34,7 +34,7 @@ LL |     pub struct Hydrogen {
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` field
-  --> $DIR/unreachable_pub-pub_crate.rs:31:9
+  --> $DIR/unreachable_pub-pub_crate.rs:30:9
    |
 LL |         pub neutrons: usize,
    |         ---^^^^^^^^^^^^^^^^
@@ -42,7 +42,7 @@ LL |         pub neutrons: usize,
    |         help: consider restricting its visibility: `pub(crate)`
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:37:9
+  --> $DIR/unreachable_pub-pub_crate.rs:36:9
    |
 LL |         pub fn count_neutrons(&self) -> usize { self.neutrons }
    |         ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +50,7 @@ LL |         pub fn count_neutrons(&self) -> usize { self.neutrons }
    |         help: consider restricting its visibility: `pub(crate)`
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:41:5
+  --> $DIR/unreachable_pub-pub_crate.rs:40:5
    |
 LL |     pub enum Helium {}
    |     ---^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL |     pub enum Helium {}
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:42:5
+  --> $DIR/unreachable_pub-pub_crate.rs:41:5
    |
 LL |     pub union Lithium { c1: usize, c2: u8 }
    |     ---^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL |     pub union Lithium { c1: usize, c2: u8 }
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:43:5
+  --> $DIR/unreachable_pub-pub_crate.rs:42:5
    |
 LL |     pub fn beryllium() {}
    |     ---^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL |     pub fn beryllium() {}
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:44:5
+  --> $DIR/unreachable_pub-pub_crate.rs:43:5
    |
 LL |     pub trait Boron {}
    |     ---^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL |     pub trait Boron {}
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:45:5
+  --> $DIR/unreachable_pub-pub_crate.rs:44:5
    |
 LL |     pub const CARBON: usize = 1;
    |     ---^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +100,7 @@ LL |     pub const CARBON: usize = 1;
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:46:5
+  --> $DIR/unreachable_pub-pub_crate.rs:45:5
    |
 LL |     pub static NITROGEN: usize = 2;
    |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +110,7 @@ LL |     pub static NITROGEN: usize = 2;
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:47:5
+  --> $DIR/unreachable_pub-pub_crate.rs:46:5
    |
 LL |     pub type Oxygen = bool;
    |     ---^^^^^^^^^^^^^^^^^^^^
@@ -120,7 +120,7 @@ LL |     pub type Oxygen = bool;
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:50:47
+  --> $DIR/unreachable_pub-pub_crate.rs:49:47
    |
 LL |         ($visibility: vis, $name: ident) => { $visibility struct $name {} }
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL |     define_empty_struct_with_visibility!(pub, Fluorine);
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub-pub_crate.rs:55:9
+  --> $DIR/unreachable_pub-pub_crate.rs:54:9
    |
 LL |         pub fn catalyze() -> bool;
    |         ---^^^^^^^^^^^^^^^^^^^^^^^
index 7fd4a901090711bcfaf666bf456533ca5d9128a3..217e26e44047a5527877f3992cc94cfc830a4220 100644 (file)
@@ -11,7 +11,6 @@
 // compile-pass
 
 #![feature(crate_visibility_modifier)]
-#![cfg_attr(stage0, feature(macro_vis_matcher))]
 
 #![allow(unused)]
 #![warn(unreachable_pub)]
index 25046055aa0247310a6d086251ab09a66d5fa5bc..e1d00d13717123572e1a9128b583bdd77440c47c 100644 (file)
@@ -1,5 +1,5 @@
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:21:5
+  --> $DIR/unreachable_pub.rs:20:5
    |
 LL |     pub use std::fmt;
    |     ---^^^^^^^^^^^^^^
@@ -7,14 +7,14 @@ LL |     pub use std::fmt;
    |     help: consider restricting its visibility: `crate`
    |
 note: lint level defined here
-  --> $DIR/unreachable_pub.rs:17:9
+  --> $DIR/unreachable_pub.rs:16:9
    |
 LL | #![warn(unreachable_pub)]
    |         ^^^^^^^^^^^^^^^
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:22:24
+  --> $DIR/unreachable_pub.rs:21:24
    |
 LL |     pub use std::env::{Args}; // braced-use has different item spans than unbraced
    |     ---                ^^^^
@@ -24,7 +24,7 @@ LL |     pub use std::env::{Args}; // braced-use has different item spans than u
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:24:5
+  --> $DIR/unreachable_pub.rs:23:5
    |
 LL |     pub struct Hydrogen {
    |     ---^^^^^^^^^^^^^^^^
@@ -34,7 +34,7 @@ LL |     pub struct Hydrogen {
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` field
-  --> $DIR/unreachable_pub.rs:26:9
+  --> $DIR/unreachable_pub.rs:25:9
    |
 LL |         pub neutrons: usize,
    |         ---^^^^^^^^^^^^^^^^
@@ -42,7 +42,7 @@ LL |         pub neutrons: usize,
    |         help: consider restricting its visibility: `crate`
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:32:9
+  --> $DIR/unreachable_pub.rs:31:9
    |
 LL |         pub fn count_neutrons(&self) -> usize { self.neutrons }
    |         ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +50,7 @@ LL |         pub fn count_neutrons(&self) -> usize { self.neutrons }
    |         help: consider restricting its visibility: `crate`
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:36:5
+  --> $DIR/unreachable_pub.rs:35:5
    |
 LL |     pub enum Helium {}
    |     ---^^^^^^^^^^^^
@@ -60,7 +60,7 @@ LL |     pub enum Helium {}
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:37:5
+  --> $DIR/unreachable_pub.rs:36:5
    |
 LL |     pub union Lithium { c1: usize, c2: u8 }
    |     ---^^^^^^^^^^^^^^
@@ -70,7 +70,7 @@ LL |     pub union Lithium { c1: usize, c2: u8 }
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:38:5
+  --> $DIR/unreachable_pub.rs:37:5
    |
 LL |     pub fn beryllium() {}
    |     ---^^^^^^^^^^^^^^^
@@ -80,7 +80,7 @@ LL |     pub fn beryllium() {}
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:39:5
+  --> $DIR/unreachable_pub.rs:38:5
    |
 LL |     pub trait Boron {}
    |     ---^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL |     pub trait Boron {}
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:40:5
+  --> $DIR/unreachable_pub.rs:39:5
    |
 LL |     pub const CARBON: usize = 1;
    |     ---^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -100,7 +100,7 @@ LL |     pub const CARBON: usize = 1;
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:41:5
+  --> $DIR/unreachable_pub.rs:40:5
    |
 LL |     pub static NITROGEN: usize = 2;
    |     ---^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -110,7 +110,7 @@ LL |     pub static NITROGEN: usize = 2;
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:42:5
+  --> $DIR/unreachable_pub.rs:41:5
    |
 LL |     pub type Oxygen = bool;
    |     ---^^^^^^^^^^^^^^^^^^^^
@@ -120,7 +120,7 @@ LL |     pub type Oxygen = bool;
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:45:47
+  --> $DIR/unreachable_pub.rs:44:47
    |
 LL |         ($visibility: vis, $name: ident) => { $visibility struct $name {} }
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL |     define_empty_struct_with_visibility!(pub, Fluorine);
    = help: or consider exporting it for use by other crates
 
 warning: unreachable `pub` item
-  --> $DIR/unreachable_pub.rs:50:9
+  --> $DIR/unreachable_pub.rs:49:9
    |
 LL |         pub fn catalyze() -> bool;
    |         ---^^^^^^^^^^^^^^^^^^^^^^^