-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Remove the '<->' operator #6260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The |
needs a rebase |
Should be good to go again |
Unfortunately this is bitrotted again :( |
Rebased for now at least, these keep creeping in... |
Well that's unfortunate, right after I pushed I wanted to make sure that the failing test from last time passed, and then I just forgot to check the output an hour later. This time the test actually passes! Perhaps the 5th time's the charm? |
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).
add a couple of ICE testcases Fixes rust-lang#6250 Fixes rust-lang#6251 Fixes rust-lang#6252 Fixes rust-lang#6255 Fixes rust-lang#6256 changelog: none
There may be a more efficient implementation of
core::util::swap_ptr
. The issue mentioned usingmove_val_init
, but I couldn't figure out what that did, so I just usedcopy_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).