Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reviewer changes
  • Loading branch information
nrc committed Mar 16, 2015
1 parent 2df1ceb commit 1fd38c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/librustc_resolve/build_reduced_graph.rs
Expand Up @@ -372,7 +372,7 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {

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);
Expand Down
7 changes: 4 additions & 3 deletions src/libsyntax/test.rs
Expand Up @@ -144,9 +144,10 @@ impl<'a> fold::Folder for TestHarnessGenerator<'a> {
// 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 {
Expand Down

0 comments on commit 1fd38c1

Please sign in to comment.