Skip to content

Commit 64bd7b8

Browse files
committed
Bump minimum Rust version to 1.30 to use stable macro :vis matcher
1 parent 09b4945 commit 64bd7b8

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ macro for providing scoped access to thread local storage (TLS) so any type can
1313
be stored into TLS.
1414
"""
1515

16-
[features]
17-
nightly = []

src/lib.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,35 +44,13 @@
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

5048
use std::cell::Cell;
5149
use std::marker;
5250
use 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")]
7654
macro_rules! scoped_thread_local {
7755
($(#[$attrs:meta])* $vis:vis static $name:ident: $ty:ty) => (
7856
$(#[$attrs])*

0 commit comments

Comments
 (0)