@@ -80,13 +80,13 @@ pub mod lazy;
80
80
#[ macro_export]
81
81
macro_rules! lazy_static {
82
82
( $( #[ $attr: meta] ) * static ref $N: ident : $T: ty = $e: expr; $( $t: tt) * ) => {
83
- lazy_static!( PRIV , $( #[ $attr] ) * static ref $N : $T = $e; $( $t) * ) ;
83
+ lazy_static!( @ PRIV , $( #[ $attr] ) * static ref $N : $T = $e; $( $t) * ) ;
84
84
} ;
85
85
( $( #[ $attr: meta] ) * pub static ref $N: ident : $T: ty = $e: expr; $( $t: tt) * ) => {
86
- lazy_static!( PUB , $( #[ $attr] ) * static ref $N : $T = $e; $( $t) * ) ;
86
+ lazy_static!( @ PUB , $( #[ $attr] ) * static ref $N : $T = $e; $( $t) * ) ;
87
87
} ;
88
- ( $VIS: ident, $( #[ $attr: meta] ) * static ref $N: ident : $T: ty = $e: expr; $( $t: tt) * ) => {
89
- lazy_static!( MAKE TY , $VIS, $( #[ $attr] ) * , $N) ;
88
+ ( @ $VIS: ident, $( #[ $attr: meta] ) * static ref $N: ident : $T: ty = $e: expr; $( $t: tt) * ) => {
89
+ lazy_static!( @ MAKE TY , $VIS, $( #[ $attr] ) * , $N) ;
90
90
impl :: std:: ops:: Deref for $N {
91
91
type Target = $T;
92
92
fn deref<' a>( & ' a self ) -> & ' a $T {
@@ -104,7 +104,7 @@ macro_rules! lazy_static {
104
104
}
105
105
lazy_static!( $( $t) * ) ;
106
106
} ;
107
- ( MAKE TY , PUB , $( #[ $attr: meta] ) * , $N: ident) => {
107
+ ( @ MAKE TY , PUB , $( #[ $attr: meta] ) * , $N: ident) => {
108
108
#[ allow( missing_copy_implementations) ]
109
109
#[ allow( non_camel_case_types) ]
110
110
#[ allow( dead_code) ]
@@ -113,7 +113,7 @@ macro_rules! lazy_static {
113
113
#[ doc( hidden) ]
114
114
pub static $N: $N = $N { __private_field: ( ) } ;
115
115
} ;
116
- ( MAKE TY , PRIV , $( #[ $attr: meta] ) * , $N: ident) => {
116
+ ( @ MAKE TY , PRIV , $( #[ $attr: meta] ) * , $N: ident) => {
117
117
#[ allow( missing_copy_implementations) ]
118
118
#[ allow( non_camel_case_types) ]
119
119
#[ allow( dead_code) ]
0 commit comments