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

Fix Bugzilla 24872 - Assigning non-copyable value to array has no effect #17083

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

pbackus
Copy link
Contributor

@pbackus pbackus commented Nov 22, 2024

Credit to @jacob-carlborg for pointing this out on Discord.

@dlang-bot
Copy link
Contributor

dlang-bot commented Nov 22, 2024

Thanks for your pull request and interest in making D better, @pbackus! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Auto-close Bugzilla Severity Description
24872 normal Assigning non-copyable value to array has no effect

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 "stable + dmd#17083"

@schveiguy
Copy link
Member

Please target stable instead. This is a bug fix.

@pbackus pbackus changed the base branch from master to stable November 22, 2024 20:48
@pbackus
Copy link
Contributor Author

pbackus commented Nov 22, 2024

Rebased and targeted to stable.

@thewilsonator
Copy link
Contributor

std/array.d(307): Error: scope variable `r` may not be returned

???

@pbackus
Copy link
Contributor Author

pbackus commented Nov 22, 2024

I was able to reproduce this failure locally using Phobos master and DMD stable, without this PR included. So I guess it's a DIP1000 bug in DMD stable that's fixed in master.

@thewilsonator thewilsonator merged commit 4c645bb into dlang:stable Nov 22, 2024
40 of 41 checks passed
@thewilsonator
Copy link
Contributor

If you could find what that is and cherry pick it that would be great.

@pbackus
Copy link
Contributor Author

pbackus commented Nov 22, 2024

Bug was fixed by #16724

@pbackus
Copy link
Contributor Author

pbackus commented Nov 22, 2024

Cherry-picking results in merge conflicts that I don't know the code well enough to resolve. Maybe @dkorpel can help?

@dkorpel
Copy link
Contributor

dkorpel commented Nov 23, 2024

The bug fix relies on refactoring (especially #16715) that's currently only in master, so either that refactoring has to be ported to stable as well, or the bug fix should be adapted to work in the code before refactoring. Or perhaps master can simply be merged into stable since 2.109.1 has been released, or was there a cutoff for 2.110 already? Not sure with the current release situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants