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

Add phobos.sys.traits.hasIndirections. #10634

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

jmdavis
Copy link
Member

@jmdavis jmdavis commented Feb 7, 2025

It does the same thing as the std.traits version. They both alias the one in druntime. However, the documentation and tests have been beefed up a bit.

I also added assertWithQualifiers as a private test helper, which it may make sense to add later as a public test helper somewhere, but we don't currently have any module or package for that sort of thing, so for now, it's private. Some of the existing tests should probably also be refactored to use it, but I'm not worrying about that as part of these changes.

I was going to do some other traits at the same time as hasIndirections, but the tests got extensive enough (and caught some bugs in the process) that I cut it down to just the one trait.

It does the same thing as the std.traits version. They both alias the
one in druntime. However, the documentaton and tests have been beefed up
a bit.

I also added assertWithQualifiers as a private test helper, which it may
make sense to add later as a public test helper somewhere, but we don't
currently have any module or package for that sort of thing, so for now,
it's private. Some of the existing tests should probably also be
refactored to use it, but I'm not worrying about that as part of these
changes.
@jmdavis jmdavis added the Phobos 3 The PR is for Phobos V3. label Feb 7, 2025
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @jmdavis!

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.

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#10634"

@LightBender
Copy link
Contributor

I have to say that I love all the bugfixes and new tests that we're getting out of this effort.

@LightBender LightBender merged commit b085fd7 into dlang:master Feb 7, 2025
10 checks passed
@jmdavis jmdavis deleted the pv3_indirections branch February 7, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Phobos 3 The PR is for Phobos V3.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants