auto merge of #7016 : thestinger/rust/ptr, r=luqmana
This commit is contained in:
commit
470bf0dfb3
7 changed files with 8 additions and 13 deletions
|
|
@ -26,8 +26,7 @@ pub fn main() {
|
|||
|
||||
fn do_swap(test: &mut TestDescAndFn) {
|
||||
unsafe {
|
||||
ptr::swap_ptr(ptr::to_mut_unsafe_ptr(test),
|
||||
ptr::to_mut_unsafe_ptr(test));
|
||||
ptr::swap_ptr(test, test);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue