File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -13,5 +13,3 @@ macro for providing scoped access to thread local storage (TLS) so any type can
1313be stored into TLS.
1414"""
1515
16- [features ]
17- nightly = []
Original file line number Diff line number Diff line change 4444//! ```
4545
4646#![ deny( missing_docs, warnings) ]
47- #![ cfg_attr( feature = "nightly" , feature( macro_vis_matcher) ) ]
48- #![ cfg_attr( feature = "nightly" , feature( allow_internal_unstable) ) ]
4947
5048use std:: cell:: Cell ;
5149use std:: marker;
5250use std:: thread:: LocalKey ;
5351
5452/// The macro. See the module level documentation for the description and examples.
5553#[ macro_export]
56- #[ cfg( not( feature = "nightly" ) ) ]
57- macro_rules! scoped_thread_local {
58- ( $( #[ $attrs: meta] ) * static $name: ident: $ty: ty) => (
59- $( #[ $attrs] ) *
60- static $name: $crate:: ScopedKey <$ty> = $crate:: ScopedKey {
61- inner: {
62- thread_local!( static FOO : :: std:: cell:: Cell <usize > = {
63- :: std:: cell:: Cell :: new( 0 )
64- } ) ;
65- & FOO
66- } ,
67- _marker: :: std:: marker:: PhantomData ,
68- } ;
69- )
70- }
71-
72- /// The macro. See the module level documentation for the description and examples.
73- #[ macro_export]
74- #[ allow_internal_unstable]
75- #[ cfg( feature = "nightly" ) ]
7654macro_rules! scoped_thread_local {
7755 ( $( #[ $attrs: meta] ) * $vis: vis static $name: ident: $ty: ty) => (
7856 $( #[ $attrs] ) *
You can’t perform that action at this time.
0 commit comments