Make sure resource destructors are properly monomorphized
This commit is contained in:
parent
8f84d4c8b6
commit
4650e8bcf4
7 changed files with 73 additions and 46 deletions
|
|
@ -135,6 +135,10 @@ fn visit_ids(item: ast::inlined_item, vfn: fn@(ast::node_id)) {
|
|||
|
||||
visit_item: fn@(i: @ast::item) {
|
||||
vfn(i.id);
|
||||
alt i.node {
|
||||
ast::item_res(_, _, _, d_id, c_id) { vfn(d_id); vfn(c_id); }
|
||||
_ {}
|
||||
}
|
||||
},
|
||||
|
||||
visit_local: fn@(l: @ast::local) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue