about summary refs log tree commit diff
path: root/library/std/src/thread
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-09-17 11:02:56 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-09-22 10:05:58 -0700
commit110e59e70e21b2c93dc0cd48f22dea292cf62b75 (patch)
treecb451a819e223065d7909b2460c670bc0bfea91e /library/std/src/thread
parent3dd28c78c3c3f0fad72bfa41dd9655ce9d7b4bd5 (diff)
downloadrust-110e59e70e21b2c93dc0cd48f22dea292cf62b75.tar.gz
rust-110e59e70e21b2c93dc0cd48f22dea292cf62b75.zip
Update library functions with stability attributes
This may not be strictly minimal, but all unstable functions also need a
`rustc_const_unstable` attribute.
Diffstat (limited to 'library/std/src/thread')
-rw-r--r--library/std/src/thread/local.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs
index 60a05dc5d54..784b376fcdc 100644
--- a/library/std/src/thread/local.rs
+++ b/library/std/src/thread/local.rs
@@ -225,6 +225,7 @@ impl<T: 'static> LocalKey<T> {
         reason = "recently added to create a key",
         issue = "none"
     )]
+    #[rustc_const_unstable(feature = "thread_local_internals", issue = "none")]
     pub const unsafe fn new(inner: unsafe fn() -> Option<&'static T>) -> LocalKey<T> {
         LocalKey { inner }
     }
@@ -497,6 +498,7 @@ pub mod os {
     }
 
     impl<T: 'static> Key<T> {
+        #[rustc_const_unstable(feature = "thread_local_internals", issue = "none")]
         pub const fn new() -> Key<T> {
             Key { os: OsStaticKey::new(Some(destroy_value::<T>)), marker: marker::PhantomData }
         }