rustc: Cleaning up bad copies and other XXXes
auto merge of #6582 : catamorphism/rust/cleanup, r=catamorphism