From 110e59e70e21b2c93dc0cd48f22dea292cf62b75 Mon Sep 17 00:00:00 2001 From: Dylan MacKenzie Date: Thu, 17 Sep 2020 11:02:56 -0700 Subject: Update library functions with stability attributes This may not be strictly minimal, but all unstable functions also need a `rustc_const_unstable` attribute. --- library/std/src/sys_common/thread_local_key.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'library/std/src/sys_common') diff --git a/library/std/src/sys_common/thread_local_key.rs b/library/std/src/sys_common/thread_local_key.rs index 3a2218854a7..676eadd1fac 100644 --- a/library/std/src/sys_common/thread_local_key.rs +++ b/library/std/src/sys_common/thread_local_key.rs @@ -117,6 +117,7 @@ pub struct Key { pub const INIT: StaticKey = StaticKey::new(None); impl StaticKey { + #[rustc_const_unstable(feature = "thread_local_internals", issue = "none")] pub const fn new(dtor: Option) -> StaticKey { StaticKey { key: atomic::AtomicUsize::new(0), dtor } } -- cgit 1.4.1-3-g733a5