Skip to content

Commit 77b2c37

Browse files
committed
---
yaml --- r: 191583 b: refs/heads/tmp c: 1fd38c1 h: refs/heads/master i: 191581: c495a12 191579: 41a66d2 191575: 2092122 191567: 557fab6 191551: 38b9796 v: v3
1 parent 1f1fb49 commit 77b2c37

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 2df1ceb001662845e14e210f22adfe02dd88112b
37+
refs/heads/tmp: 1fd38c181a5cadb854dd8eb22d1ba1b7f009a12f
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 4a5101a42f8ea36bdbe14749e672ab78cb971726

branches/tmp/src/librustc_resolve/build_reduced_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl<'a, 'b:'a, 'tcx:'b> GraphBuilder<'a, 'b, 'tcx> {
372372

373373
ItemExternCrate(_) => {
374374
// n.b. we don't need to look at the path option here, because cstore already did
375-
for &crate_id in self.session.cstore.find_extern_mod_stmt_cnum(item.id).iter() {
375+
if let Some(crate_id) = self.session.cstore.find_extern_mod_stmt_cnum(item.id) {
376376
let def_id = DefId { krate: crate_id, node: 0 };
377377
self.external_exports.insert(def_id);
378378
let parent_link = ModuleParentLink(parent.downgrade(), name);

branches/tmp/src/libsyntax/test.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ impl<'a> fold::Folder for TestHarnessGenerator<'a> {
144144
// Make all tests public so we can call them from outside
145145
// the module (note that the tests are re-exported and must
146146
// be made public themselves to avoid privacy errors).
147-
let mut result = (*i).clone();
148-
result.vis = ast::Public;
149-
P(result)
147+
i.map(|mut i| {
148+
i.vis = ast::Public;
149+
i
150+
})
150151
}
151152
}
152153
} else {

0 commit comments

Comments
 (0)