remove `cast::unsafe_copy`

This is the same functionality as `ptr::read_ptr`.
auto merge of #10497 : thestinger/rust/cleanup, r=cmr

This is the same functionality as `ptr::read_ptr`.