auto merge of #7016 : thestinger/rust/ptr, r=luqmana

This commit is contained in:
bors 2013-06-08 14:31:10 -07:00
commit 470bf0dfb3
7 changed files with 8 additions and 13 deletions

View file

@ -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);
}
}