Skip to content

Commit

Permalink
Stabilize underscore_const_names: stage0 -> bootstrap.
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Jun 10, 2019
1 parent 48e863e commit e62c9d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_data_structures/macros.rs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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>()];
Expand Down

0 comments on commit e62c9d7

Please sign in to comment.