From 4a18d46130e13aad28fc072dafdd7e7b4baa8736 Mon Sep 17 00:00:00 2001 From: jmgrosen Date: Tue, 3 Sep 2013 16:11:00 -0700 Subject: Fixes #8881. condition! imports parent's pub identifiers --- src/libsyntax/ext/expand.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/libsyntax') 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; -- cgit 1.4.1-3-g733a5