Use moved core.lifetime.move{,Emplace} for std.algorithm.mutation.move{,Emplace}#6848
Use moved core.lifetime.move{,Emplace} for std.algorithm.mutation.move{,Emplace}#6848wilzbach wants to merge 1 commit intodlang:masterfrom
Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + phobos#6848" |
| assertThrown!Error(move(p)); | ||
| assertThrown!Error(move(p, pp)); | ||
| assertThrown!Error(swap(p, pp)); | ||
| //import std.exception : assertThrown; |
There was a problem hiding this comment.
Why not delete instead of commenting?
There was a problem hiding this comment.
I wanted to see whether this is the only issue.
As explained, the core.lifetime functions are technically different and using them is a breaking change.
|
@thewilsonator this one is for you. |
|
This one is painful because Which is particularly painful to fix/emulate downstream because of the |
|
The code forces |
|
|
I figure, emulating the previous behavior might be a hopeless endeavor. Everything is built around AFAICT a more reasonable way forward would be to fix |
In dlang/druntime#2442,
doesPointTowasn't ported as it's quite big (dlang/druntime#2447).That's why one test which test this behavior would fail now. Should we simply move
doesPointToto druntime as proposed, s.t. we don't need to maintain two implementations?