Skip to content

Commit f1b1449

Browse files
committed
---
yaml --- r: 190719 b: refs/heads/master c: 1fd38c1 h: refs/heads/master i: 190717: a760fb4 190715: d80b99b 190711: 2cbb0d9 190703: eb6ce5c 190687: 59c6b60 190655: d51b738 190591: 5ebdcfe 190463: f55a205 v: v3
1 parent 26366fb commit f1b1449

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 2df1ceb001662845e14e210f22adfe02dd88112b
2+
refs/heads/master: 1fd38c181a5cadb854dd8eb22d1ba1b7f009a12f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c64d671671aea2e44ee7fc6eb00ee75fc30ed7b9
55
refs/heads/try: 1c28ab65017d74fc13d003f7c7a73d1a48e5406f

trunk/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);

trunk/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)