Fix implicit leaks of imports throughout libraries

Also touch up use of 'pub' and move some tests around so the tested functions
don't have to be 'pub'
This commit is contained in:
Alex Crichton
2013-02-25 14:11:21 -05:00
parent f2837fa3f5
commit 2df07ddc25
70 changed files with 499 additions and 299 deletions

View File

@@ -82,7 +82,7 @@ pub enum SyntaxExtension {
IdentTT(SyntaxExpanderTTItem),
}
type SyntaxEnv = @mut MapChain<Name, Transformer>;
pub type SyntaxEnv = @mut MapChain<Name, Transformer>;
// Name : the domain of SyntaxEnvs
// want to change these to uints....
@@ -98,7 +98,7 @@ type Name = @~str;
// toward a more uniform syntax syntax (sorry) where blocks are just
// another kind of transformer.
enum Transformer {
pub enum Transformer {
// this identifier maps to a syntax extension or macro
SE(SyntaxExtension),
// should blocks occurring here limit macro scopes?
@@ -495,6 +495,7 @@ mod test {
use super::*;
use super::MapChain;
use util::testing::check_equal;
use core::hashmap::linear::LinearMap;
#[test] fn testenv () {
let mut a = LinearMap::new();