diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-02-27 16:58:12 -0700 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-03-02 09:05:34 -0700 |
| commit | 2870015b7b7a52a23db0b68fde8b830706061fd0 (patch) | |
| tree | 081ff03ea2e2aa9c985be3d950919ca96991c21d /src/libstd/thread | |
| parent | 9cfed5da12bf65212eb9a4ae9141c2f39f995381 (diff) | |
| download | rust-2870015b7b7a52a23db0b68fde8b830706061fd0.tar.gz rust-2870015b7b7a52a23db0b68fde8b830706061fd0.zip | |
Bootstrap compiler update for 1.35 release
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/local.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs index d1f53734d30..3a876e05ecc 100644 --- a/src/libstd/thread/local.rs +++ b/src/libstd/thread/local.rs @@ -126,8 +126,7 @@ impl<T: 'static> fmt::Debug for LocalKey<T> { /// [`std::thread::LocalKey`]: ../std/thread/struct.LocalKey.html #[macro_export] #[stable(feature = "rust1", since = "1.0.0")] -#[cfg_attr(stage0, allow_internal_unstable)] -#[cfg_attr(not(stage0), allow_internal_unstable(thread_local_internals))] +#[allow_internal_unstable(thread_local_internals)] macro_rules! thread_local { // empty (base case for the recursion) () => {}; @@ -149,10 +148,7 @@ macro_rules! thread_local { reason = "should not be necessary", issue = "0")] #[macro_export] -#[cfg_attr(stage0, allow_internal_unstable)] -#[cfg_attr(not(stage0), allow_internal_unstable( - thread_local_internals, cfg_target_thread_local, thread_local, -))] +#[allow_internal_unstable(thread_local_internals, cfg_target_thread_local, thread_local)] #[allow_internal_unsafe] macro_rules! __thread_local_inner { (@key $(#[$attr:meta])* $vis:vis $name:ident, $t:ty, $init:expr) => { |
