diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 0827a9fabee..f183067a9c1 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -889,7 +889,11 @@ pub fn std_macros() -> @str { { pub $c:ident: $input:ty -> $out:ty; } => { pub mod $c { + #[allow(unused_imports)]; #[allow(non_uppercase_statics)]; + + use super::*; + static key: ::std::local_data::Key< @::std::condition::Handler<$input, $out>> = &::std::local_data::Key; @@ -907,7 +911,11 @@ pub fn std_macros() -> @str { // FIXME (#6009): remove mod's `pub` below once variant above lands. pub mod $c { + #[allow(unused_imports)]; #[allow(non_uppercase_statics)]; + + use super::*; + static key: ::std::local_data::Key< @::std::condition::Handler<$input, $out>> = &::std::local_data::Key; |
