Skip to content
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

merge stable #8998

Merged
merged 3 commits into from
May 3, 2024
Merged

merge stable #8998

merged 3 commits into from
May 3, 2024

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented May 3, 2024

  • Fix bugzilla issue 24481: retro stopped working
  • Fix documentation typos.

jmdavis and others added 3 commits April 29, 2024 11:33
In an attempt make it so that non-copyable types worked with some of the
functions in std/range/package.d, they were made to use moves instead of
assignment, which broke the code for types which work with assignment
but not moves (which affected the folks at Weka).

The code checked for assignment but not whether move could be used, and
that didn't change when the code was changed to use move, meaning that
the checks didn't match what the code was actually doing.

So, to support both the non-copyable types and the ones that can be
assigned to but not moved to, this changes the code to use
core.lifetime.forward which will move the argument if it can and assign
otherwise. So ,the code that worked previously should work again, and
the newer functionality of being able to use non-copyable types with
this code should continue to work.

Discussion here: dlang#8721
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Auto-close Bugzilla Severity Description
24481 regression retro no longer works with types that support assignment but not moving

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + phobos#8998"

@ibuclaw ibuclaw merged commit 303b9c9 into dlang:master May 3, 2024
9 of 10 checks passed
@ibuclaw ibuclaw deleted the merge_stable branch May 3, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants