In reachability, traverse all classes that have dtors
since dtors always have external linkage
This commit is contained in:
parent
fee78d296c
commit
a141f58e9b
1 changed files with 5 additions and 1 deletions
|
|
@ -209,7 +209,11 @@ fn traverse_all_resources(cx: ctx, crate_mod: _mod) {
|
|||
visit_item: {|i, cx, v|
|
||||
visit::visit_item(i, cx, v);
|
||||
alt i.node {
|
||||
item_res(_, _, _, _, _, _) {
|
||||
item_res(*) {
|
||||
traverse_public_item(cx, i);
|
||||
}
|
||||
// Classes with dtors too!
|
||||
item_class(_, _, _, _, some(_), _) {
|
||||
traverse_public_item(cx, i);
|
||||
}
|
||||
_ {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue