File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ impl<T: Sync> Lazy<T> {
21
21
unsafe impl < T : Sync > Sync for Lazy < T > { }
22
22
23
23
#[ macro_export]
24
- macro_rules! lazy_static_create {
24
+ macro_rules! __lazy_static_create {
25
25
( $NAME: ident, $T: ty) => {
26
26
use std:: sync:: ONCE_INIT ;
27
27
static mut $NAME: $crate:: lazy:: Lazy <$T> = $crate:: lazy:: Lazy ( 0 as * const $T, ONCE_INIT ) ;
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ macro_rules! lazy_static {
96
96
97
97
#[ inline( always) ]
98
98
unsafe fn __stability( ) -> & ' static $T {
99
- lazy_static_create !( LAZY , $T) ;
99
+ __lazy_static_create !( LAZY , $T) ;
100
100
LAZY . get( __static_ref_initialize)
101
101
}
102
102
__stability( )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ impl<T: Sync> Lazy<T> {
31
31
unsafe impl < T : Sync > Sync for Lazy < T > { }
32
32
33
33
#[ macro_export]
34
- macro_rules! lazy_static_create {
34
+ macro_rules! __lazy_static_create {
35
35
( $NAME: ident, $T: ty) => {
36
36
static $NAME: $crate:: lazy:: Lazy <$T> = $crate:: lazy:: Lazy :: new( ) ;
37
37
}
You can’t perform that action at this time.
0 commit comments