Fix cross-crate packed structs
auto merge of #6265 : sanxiyn/rust/xc-packed, r=nikomatsakis