From 1b318a2b498f1edb217d193ee3c97763ad0e9535 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Wed, 4 Aug 2021 18:16:03 +0200 Subject: [PATCH] Remove unnecessary #[unstable] from internal macro. After this change, all library #![feature]s enabled in core are for const fns. --- library/core/src/internal_macros.rs | 1 - library/core/src/lib.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/library/core/src/internal_macros.rs b/library/core/src/internal_macros.rs index 4ea7dfc0735..be12f904640 100644 --- a/library/core/src/internal_macros.rs +++ b/library/core/src/internal_macros.rs @@ -77,7 +77,6 @@ macro_rules! forward_ref_op_assign { } /// Create a zero-size type similar to a closure type, but named. -#[unstable(feature = "std_internals", issue = "none")] macro_rules! impl_fn_for_zst { ($( $( #[$attr: meta] )* diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs index 37be9214108..cc502658646 100644 --- a/library/core/src/lib.rs +++ b/library/core/src/lib.rs @@ -70,7 +70,7 @@ #![warn(missing_docs)] #![allow(explicit_outlives_requirements)] -// Library features: +// Library features for const fns: #![feature(const_align_of_val)] #![feature(const_alloc_layout)] #![feature(const_arguments_as_str)] @@ -105,7 +105,6 @@ #![feature(duration_consts_2)] #![feature(ptr_metadata)] #![feature(slice_ptr_get)] -#![feature(std_internals)] #![feature(variant_count)] // Language features: