diff options
| author | jmgrosen <jmgrosen@gmail.com> | 2013-09-03 16:11:00 -0700 |
|---|---|---|
| committer | jmgrosen <jmgrosen@gmail.com> | 2013-09-03 16:11:00 -0700 |
| commit | 4a18d46130e13aad28fc072dafdd7e7b4baa8736 (patch) | |
| tree | 55bf5d196fff7b938cfb7aa16374a897f8a3b653 /src/libsyntax/ext | |
| parent | fc9fa2cb6ca2b0979137134713fe3f693090a9d9 (diff) | |
| download | rust-4a18d46130e13aad28fc072dafdd7e7b4baa8736.tar.gz rust-4a18d46130e13aad28fc072dafdd7e7b4baa8736.zip | |
Fixes #8881. condition! imports parent's pub identifiers
Diffstat (limited to 'src/libsyntax/ext')
| -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; |
