-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Remove unused imports [on hold]. #1948
Conversation
Thanks for your pull request and interest in making D better, @veelo! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
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. |
|
@thewilsonator this kind of change needs a lot more checking, the CI output will probably not be enough here. When removing imports the templates which aren't covered might break because they could have used symbols which are now removed. So for these changes you need to go through every template definition, version block, unittest block and debug block and look at all the used symbols for every file where an import is removed. If mixins are involved this gets a lot more work to check correctly too. Dub is used as a library too so something like this can easily cause issues. (I'm just assuming here that you didn't do this thorough review because your approval is 2 minutes after the PR opened) |
@WebFreak001 Thanks for pointing this out. I have grepped for "template" and "static if", which doesn't give hits in the files from this changeset. I just scanned the first 1k lines of |
you can fairly reliably find function templates by searching for Actually checking if the removed symbols are then really gone through that import is another challenge though. I looked at dependency.d where the |
I'm not sure I understand. You mean you would have expected compilation to fail because the template that uses the import is instantiated in the unittest? Adding to that, I'm getting less enthusiastic about all this, maybe we should just close this PR... I don't understand the failing check either. |
I have split this up into smaller PRs. |
Thanks! |
No description provided.