Skip to content

Commit 844d93b

Browse files
authored
Merge pull request #107 from dtolnay/helpers
Use local_inner_macros to resolve all helper macros within $crate
2 parents bc51ed6 + e3b8efe commit 844d93b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub mod lazy;
123123
#[doc(hidden)]
124124
pub use core::ops::Deref as __Deref;
125125

126-
#[macro_export]
126+
#[macro_export(local_inner_macros)]
127127
#[doc(hidden)]
128128
macro_rules! __lazy_static_internal {
129129
// optional visibility restrictions are wrapped in `()` to allow for
@@ -170,7 +170,7 @@ macro_rules! __lazy_static_internal {
170170
() => ()
171171
}
172172

173-
#[macro_export]
173+
#[macro_export(local_inner_macros)]
174174
macro_rules! lazy_static {
175175
($(#[$attr:meta])* static ref $N:ident : $T:ty = $e:expr; $($t:tt)*) => {
176176
// use `()` to explicitly forward the information about private items

0 commit comments

Comments
 (0)