diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2015-03-01 14:09:42 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2015-03-06 00:18:29 +1100 |
| commit | ab7ef7402bfab1c767b8be80f7e46947494f6d21 (patch) | |
| tree | 5270259da336c989e705f29202197b703d6a5022 /src/libstd/sys | |
| parent | 84b060ce29bf7dd65fc23e855ad7c5a8748d806c (diff) | |
| download | rust-ab7ef7402bfab1c767b8be80f7e46947494f6d21.tar.gz rust-ab7ef7402bfab1c767b8be80f7e46947494f6d21.zip | |
Use `#[allow_internal_unstable]` for `thread_local!`
This destabilises all the implementation details of `thread_local!`, since they do not *need* to be stable with the new attribute.
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/common/thread_local.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libstd/sys/common/thread_local.rs b/src/libstd/sys/common/thread_local.rs index 27b8784e394..91de2662883 100644 --- a/src/libstd/sys/common/thread_local.rs +++ b/src/libstd/sys/common/thread_local.rs @@ -55,6 +55,7 @@ //! ``` #![allow(non_camel_case_types)] +#![unstable(feature = "thread_local_internals")] use prelude::v1::*; @@ -84,17 +85,14 @@ use sys::thread_local as imp; /// KEY.set(1 as *mut u8); /// } /// ``` -#[stable(feature = "rust1", since = "1.0.0")] pub struct StaticKey { /// Inner static TLS key (internals), created with by `INIT_INNER` in this /// module. - #[stable(feature = "rust1", since = "1.0.0")] pub inner: StaticKeyInner, /// Destructor for the TLS value. /// /// See `Key::new` for information about when the destructor runs and how /// it runs. - #[stable(feature = "rust1", since = "1.0.0")] pub dtor: Option<unsafe extern fn(*mut u8)>, } @@ -131,7 +129,6 @@ pub struct Key { /// Constant initialization value for static TLS keys. /// /// This value specifies no destructor by default. -#[stable(feature = "rust1", since = "1.0.0")] pub const INIT: StaticKey = StaticKey { inner: INIT_INNER, dtor: None, @@ -140,7 +137,6 @@ pub const INIT: StaticKey = StaticKey { /// Constant initialization value for the inner part of static TLS keys. /// /// This value allows specific configuration of the destructor for a TLS key. -#[stable(feature = "rust1", since = "1.0.0")] pub const INIT_INNER: StaticKeyInner = StaticKeyInner { key: atomic::ATOMIC_USIZE_INIT, }; |
