Use the slice repr for ~[T]
This commit is contained in:
parent
5fb2dfaa20
commit
34d607f9c9
16 changed files with 247 additions and 264 deletions
|
@ -174,7 +174,7 @@ pub unsafe fn overwrite<T>(dst: *mut T, src: T) {
|
|||
|
||||
/// Deprecated, use `overwrite` instead
|
||||
#[inline]
|
||||
#[deprecated = "use ptr::write"]
|
||||
#[deprecated = "this function has been renamed to overwrite()"]
|
||||
pub unsafe fn move_val_init<T>(dst: &mut T, src: T) {
|
||||
ptr::write(dst, src)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue