Reviewer changes
This commit is contained in:
parent
2df1ceb001
commit
1fd38c181a
@ -372,7 +372,7 @@ fn build_reduced_graph_for_item(&mut self, item: &Item, parent: &Rc<Module>) ->
|
||||
|
||||
ItemExternCrate(_) => {
|
||||
// n.b. we don't need to look at the path option here, because cstore already did
|
||||
for &crate_id in self.session.cstore.find_extern_mod_stmt_cnum(item.id).iter() {
|
||||
if let Some(crate_id) = self.session.cstore.find_extern_mod_stmt_cnum(item.id) {
|
||||
let def_id = DefId { krate: crate_id, node: 0 };
|
||||
self.external_exports.insert(def_id);
|
||||
let parent_link = ModuleParentLink(parent.downgrade(), name);
|
||||
|
@ -144,9 +144,10 @@ fn fold_item(&mut self, i: P<ast::Item>) -> SmallVector<P<ast::Item>> {
|
||||
// Make all tests public so we can call them from outside
|
||||
// the module (note that the tests are re-exported and must
|
||||
// be made public themselves to avoid privacy errors).
|
||||
let mut result = (*i).clone();
|
||||
result.vis = ast::Public;
|
||||
P(result)
|
||||
i.map(|mut i| {
|
||||
i.vis = ast::Public;
|
||||
i
|
||||
})
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user