Fix `Vec::map_in_place` not doing what is written in the comment
auto merge of #18908 : tbu-/rust/pr_mapinplace_fixzerosized, r=alexcrichton