Make sure resource destructors are properly monomorphized

This commit is contained in:
Marijn Haverbeke 2012-03-08 21:16:04 +01:00
parent 8f84d4c8b6
commit 4650e8bcf4
7 changed files with 73 additions and 46 deletions

View file

@ -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) {