vec::raw::to_ptr was removed in rust.