mozilla/rust — pull request #6260 by alexcrichton (2013-05-06 05:16:13+00:00)
Title: Remove the '<->' operator

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).