Skip to content

Commit 9d12c21

Browse files
michaelwoeristernikomatsakis
authored andcommitted
---
yaml --- r: 276470 b: refs/heads/try c: 5027a79 h: refs/heads/master
1 parent e5e2753 commit 9d12c21

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 6fdeecf62f413171ad9762bb42b2d794eb4f4967
4+
refs/heads/try: 5027a79279353ca86d7ebb1f3fb9cc03361b84b4
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/librustc_trans/trans/inline.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ fn instantiate_inline(ccx: &CrateContext, fn_id: DefId) -> Option<DefId> {
9797
for (ast_v, ty_v) in ast_vs.iter().zip(ty_vs.iter()) {
9898
if ty_v.did == fn_id { my_id = ast_v.node.data.id(); }
9999
ccx.external().borrow_mut().insert(ty_v.did, Some(ast_v.node.data.id()));
100+
ccx.external_srcs().borrow_mut().insert(ast_v.node.data.id(), ty_v.did);
100101
}
101102
}
102103
hir::ItemStruct(ref struct_def, _) => {
@@ -105,6 +106,7 @@ fn instantiate_inline(ccx: &CrateContext, fn_id: DefId) -> Option<DefId> {
105106
non-tuple struct")
106107
} else {
107108
ccx.external().borrow_mut().insert(fn_id, Some(struct_def.id()));
109+
ccx.external_srcs().borrow_mut().insert(struct_def.id(), fn_id);
108110
my_id = struct_def.id();
109111
}
110112
}

0 commit comments

Comments
 (0)