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 #10680 - std.getopt doesn't accept const(string)[] anymore #10684

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

schveiguy
Copy link
Member

Reworked the conversion function so it returns the value instead of accepting a (possibly const) pointer.

…ction,

just return the value and assign it to the receiver. Renamed the
conversion function and also cleaned up all the `typeof` calls, which
were very verbose.
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @schveiguy!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

⚠️⚠️⚠️ Warnings ⚠️⚠️⚠️

  • In preparation for migrating from Bugzilla to GitHub Issues, the issue reference syntax has changed. Please add the word "Bugzilla" to issue references. For example, Fix Bugzilla Issue 12345 or Fix Bugzilla 12345.(Reminder: the edit needs to be done in the Git commit message, not the GitHub pull request.)

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 + phobos#10684"

@kinke
Copy link
Contributor

kinke commented Mar 17, 2025

Thanks Steven for taking care of this! (FWIW, needed to compile reggae...) - I guess the simple GitHub issue ref is enough for the upcoming changelog generator?

@thewilsonator thewilsonator merged commit 79cbde1 into dlang:stable Mar 17, 2025
10 checks passed
@schveiguy schveiguy deleted the fix10680 branch March 18, 2025 02:55
@schveiguy
Copy link
Member Author

Hm... I don't know the magic thing to say to get the issue to auto-close...

@jmdavis
Copy link
Member

jmdavis commented Mar 18, 2025

Hm... I don't know the magic thing to say to get the issue to auto-close...

I never seem to be able to get it right. The documentation explaining it is here: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue

Looking at that page and at the title here though, I would have thought that it would have worked.

@schveiguy
Copy link
Member Author

Oh! I know. This only happens if you merge to master. OK.

@schveiguy
Copy link
Member Author

FWIW, needed to compile reggae

Hm... reggae should be added to the buildkite CI. It's very much an integral part of the ecosystem, and we should not be able to break it without CI complaining.

hubot pushed a commit to gcc-mirror/gcc that referenced this pull request Mar 18, 2025
Instead of passing receiver into the conversion function, just return
the value and assign it to the receiver. Renamed the conversion function
and also cleaned up all the `typeof' calls, which were very verbose.

libphobos/ChangeLog:

	* src/MERGE: Merge upstream phobos 79cbde1ab.

Reviewed-on: dlang/phobos#10684
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants