Don't perform swap when src == dst. #5041
auto merge of #5043 : brson/rust/swap, r=brson

r?