]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #6260 : alexcrichton/rust/issue-3466-no-swap, r=pcwalton
authorbors <bors@rust-lang.org>
Sat, 11 May 2013 03:35:00 +0000 (20:35 -0700)
committerbors <bors@rust-lang.org>
Sat, 11 May 2013 03:35:00 +0000 (20:35 -0700)
There may be a more efficient implementation of `core::util::swap_ptr`. The issue mentioned using `move_val_init`, but I couldn't figure out what that did, so I just used `copy_memory` a few times instead.

I'm not exactly the best at reading LLVM generated by rust, but this does appear to be optimized away just as expected (when possible).


Trivial merge