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
13
13
be stored into TLS.
14
14
"""
15
15
16
- [features ]
17
- nightly = []
Original file line number Diff line number Diff line change 44
44
//! ```
45
45
46
46
#![ deny( missing_docs, warnings) ]
47
- #![ cfg_attr( feature = "nightly" , feature( macro_vis_matcher) ) ]
48
- #![ cfg_attr( feature = "nightly" , feature( allow_internal_unstable) ) ]
49
47
50
48
use std:: cell:: Cell ;
51
49
use std:: marker;
52
50
use std:: thread:: LocalKey ;
53
51
54
52
/// The macro. See the module level documentation for the description and examples.
55
53
#[ 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" ) ]
76
54
macro_rules! scoped_thread_local {
77
55
( $( #[ $attrs: meta] ) * $vis: vis static $name: ident: $ty: ty) => (
78
56
$( #[ $attrs] ) *
You can’t perform that action at this time.
0 commit comments