File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ The `Deref` implementation uses a hidden static variable that is guarded by a at
68
68
69
69
*/
70
70
71
- #![ cfg_attr( feature="nightly" , feature( const_fn, core_intrinsics ) ) ]
71
+ #![ cfg_attr( feature="nightly" , feature( const_fn, allow_internal_unstable ) ) ]
72
72
73
73
#[ cfg( not( feature="nightly" ) ) ]
74
74
pub mod lazy;
@@ -78,6 +78,7 @@ pub mod lazy;
78
78
pub mod lazy;
79
79
80
80
#[ macro_export]
81
+ #[ cfg_attr( feature="nightly" , allow_internal_unstable) ]
81
82
macro_rules! lazy_static {
82
83
( $( #[ $attr: meta] ) * static ref $N: ident : $T: ty = $e: expr; $( $t: tt) * ) => {
83
84
lazy_static!( @PRIV , $( #[ $attr] ) * static ref $N : $T = $e; $( $t) * ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ impl<T: Sync> Lazy<T> {
31
31
unsafe impl < T : Sync > Sync for Lazy < T > { }
32
32
33
33
#[ macro_export]
34
+ #[ allow_internal_unstable]
34
35
macro_rules! __lazy_static_create {
35
36
( $NAME: ident, $T: ty) => {
36
37
static $NAME: $crate:: lazy:: Lazy <$T> = $crate:: lazy:: Lazy :: new( ) ;
You can’t perform that action at this time.
0 commit comments