From 681e5da61ee3f1251c00c2ec0d93dd23dbf861bc Mon Sep 17 00:00:00 2001 From: Alex Burka Date: Fri, 8 Sep 2017 18:26:54 +0000 Subject: change #![feature(const_fn)] to specific gates --- src/libstd/sync/once.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs index 403685a4b8e..015106fc2e5 100644 --- a/src/libstd/sync/once.rs +++ b/src/libstd/sync/once.rs @@ -156,6 +156,7 @@ struct Finish { impl Once { /// Creates a new `Once` value. #[stable(feature = "once_new", since = "1.2.0")] + #[cfg_attr(not(stage0), rustc_const_unstable(feature = "const_once_new"))] pub const fn new() -> Once { Once { state: AtomicUsize::new(INCOMPLETE), -- cgit 1.4.1-3-g733a5