rustc: Less copy in trans, rs=removing copies
auto merge of #5017 : catamorphism/rust/less-copy, r=catamorphism