rustc: One Less Bad Copy
auto merge of #5339 : catamorphism/rust/less-copy, r=catamorphism