`std::ptr::read_ptr` now takes `*T` instead of `*mut T`

Closes #10579