File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ fn instantiate_inline(ccx: &CrateContext, fn_id: DefId) -> Option<DefId> {
97
97
for ( ast_v, ty_v) in ast_vs. iter ( ) . zip ( ty_vs. iter ( ) ) {
98
98
if ty_v. did == fn_id { my_id = ast_v. node . data . id ( ) ; }
99
99
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 ) ;
100
101
}
101
102
}
102
103
hir:: ItemStruct ( ref struct_def, _) => {
@@ -105,6 +106,7 @@ fn instantiate_inline(ccx: &CrateContext, fn_id: DefId) -> Option<DefId> {
105
106
non-tuple struct")
106
107
} else {
107
108
ccx. external ( ) . borrow_mut ( ) . insert ( fn_id, Some ( struct_def. id ( ) ) ) ;
109
+ ccx. external_srcs ( ) . borrow_mut ( ) . insert ( struct_def. id ( ) , fn_id) ;
108
110
my_id = struct_def. id ( ) ;
109
111
}
110
112
}
You can’t perform that action at this time.
0 commit comments