libcore: Remove ptr::mut_addr_of since &mut is coerced to *mut
This commit is contained in:
parent
af2f0ef088
commit
cc89029942
7 changed files with 17 additions and 27 deletions
|
@ -2110,7 +2110,7 @@ pub mod raw {
|
|||
let v: **vec::raw::VecRepr = cast::transmute(v);
|
||||
let repr: *vec::raw::VecRepr = *v;
|
||||
(*repr).unboxed.fill = new_len + 1u;
|
||||
let null = ptr::mut_offset(ptr::mut_addr_of(&((*repr).unboxed.data)),
|
||||
let null = ptr::mut_offset(cast::transmute(&((*repr).unboxed.data)),
|
||||
new_len);
|
||||
*null = 0u8;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue