Remove .as_mut_ptr()

Discussion at
https://github.com/rust-lang/rust/issues/16772