about summary refs log tree commit diff
path: root/src/librustc_resolve
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2015-03-12 10:44:56 +1300
committerNick Cameron <ncameron@mozilla.com>2015-03-18 16:47:24 +1300
commit46aa621452b591e5c504fd85dfe514b92c49c228 (patch)
tree47d070831f78420310ab3418baa5ff91b98a0010 /src/librustc_resolve
parentea8b82e90c450febb1f26a07862a1ec89c22addd (diff)
downloadrust-46aa621452b591e5c504fd85dfe514b92c49c228.tar.gz
rust-46aa621452b591e5c504fd85dfe514b92c49c228.zip
Fix private module loophole in the 'private type in public item' check
Diffstat (limited to 'src/librustc_resolve')
-rw-r--r--src/librustc_resolve/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs
index 67e9f71551a..b619c6a77d0 100644
--- a/src/librustc_resolve/lib.rs
+++ b/src/librustc_resolve/lib.rs
@@ -382,7 +382,7 @@ enum ModuleKind {
 }
 
 /// One node in the tree of modules.
-struct Module {
+pub struct Module {
     parent_link: ParentLink,
     def_id: Cell<Option<DefId>>,
     kind: Cell<ModuleKind>,
@@ -491,7 +491,7 @@ struct ValueNsDef {
 // Records the definitions (at most one for each namespace) that a name is
 // bound to.
 #[derive(Debug)]
-struct NameBindings {
+pub struct NameBindings {
     type_def: RefCell<Option<TypeNsDef>>,   //< Meaning in type namespace.
     value_def: RefCell<Option<ValueNsDef>>, //< Meaning in value namespace.
 }
@@ -767,7 +767,7 @@ impl PrimitiveTypeTable {
 }
 
 /// The main resolver class.
-struct Resolver<'a, 'tcx:'a> {
+pub struct Resolver<'a, 'tcx:'a> {
     session: &'a Session,
 
     ast_map: &'a ast_map::Map<'tcx>,