From e62c9d7917052db098c6f27314f4daa5b9513387 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Sat, 8 Jun 2019 01:00:40 +0200 Subject: [PATCH] Stabilize underscore_const_names: stage0 -> bootstrap. --- src/librustc_data_structures/macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustc_data_structures/macros.rs b/src/librustc_data_structures/macros.rs index a813b5230d245..6e7a8e98853c0 100644 --- a/src/librustc_data_structures/macros.rs +++ b/src/librustc_data_structures/macros.rs @@ -1,7 +1,7 @@ /// A simple static assertion macro. #[macro_export] -#[cfg_attr(stage0, allow_internal_unstable(type_ascription, underscore_const_names))] -#[cfg_attr(not(stage0), allow_internal_unstable(type_ascription))] +#[cfg_attr(bootstrap, allow_internal_unstable(type_ascription, underscore_const_names))] +#[cfg_attr(not(bootstrap), allow_internal_unstable(type_ascription))] macro_rules! static_assert { ($test:expr) => { // Use the bool to access an array such that if the bool is false, the access @@ -13,7 +13,7 @@ macro_rules! static_assert { /// Type size assertion. The first argument is a type and the second argument is its expected size. #[macro_export] -#[cfg_attr(stage0, allow_internal_unstable(underscore_const_names))] +#[cfg_attr(bootstrap, allow_internal_unstable(underscore_const_names))] macro_rules! static_assert_size { ($ty:ty, $size:expr) => { const _: [(); $size] = [(); ::std::mem::size_of::<$ty>()];