fix cross-crate destructor inlining

Closes #7793
auto merge of #10242 : thestinger/rust/inline_dtor, r=alexcrichton

Closes #7793