Remove std::cast::transmute_immut_unsafe

It can be done in safe code using `as *T`.
auto merge of #13015 : tbu-/rust/pr_remove_immut, r=alexcrichton

Remove std::cast::transmute_immut_unsafe.
It can be done in safe code using `as *T`.