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

Avoid quadratic template expansion in constraints of multiple search term versions of std.algorithm.searching.startsWith & endsWith #7847

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

n8sh
Copy link
Member

@n8sh n8sh commented Mar 12, 2021

See https://issues.dlang.org/show_bug.cgi?id=21473. There is other stuff going on but fixing this makes that code compilable. Because in certain situations this is causing the compiler to crash I think it is reasonable to consider this a bug fix rather than an enhancement.

…of multiple search term versions of std.algorithm.searching.startsWith & endsWith
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @n8sh!

Bugzilla references

Auto-close Bugzilla Severity Description
21702 normal avoid quadratic template expansion in constraints of multiple search term versions of std.algorithm.searching.startsWith & endsWith

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

Copy link
Contributor

@thewilsonator thewilsonator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, my favourite template constraint to give horrible untraceable error messages

@dlang-bot dlang-bot merged commit 6d9a508 into dlang:stable Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants