-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
std.math: Begin deprecation of accidentally leaked AliasSeq #7487
Conversation
|
Thanks for your pull request, @ibuclaw! Bugzilla referencesYour 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 locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#7487" |
|
That workaround is really ugly... The weird part is that this bug doesn't apply to other deprecated imports, e.g function (templates). |
|
Maybe |
|
The worst part about this is that the deprecation message will be printed for the mixin line, not the usage. However, one possible saving grace is that the full instantiation is printed, so you might be able to deduce where it's coming from based on that. |
|
I don't see a deprecation in the D-YAML build log. Was the import of Edit: yes it was... dlang-community/D-YAML#254 |
|
Please don't merge this yet, I think i have a fix for the missing deprecation. EDIT: See dlang/dmd#11158 |
std/math.d
Outdated
| public import std.meta : AliasSeq; | ||
| private template DeprecatedAliasSeq(V...) | ||
| { | ||
| deprecated("std.meta.AliasSeq was unintentionally available from std.math and will be removed after 2.102. Please import std.meta instead") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to break this line in half, style check complains.
I'll reapprove if the DMD PR doesn't work out. Just don't want this to be merged prematurely.
|
Should we close this now that dlang/dmd#11158 is merged? |
|
Not really, just add a plain deprecation message? |
|
Right, maybe adjust this to properly deprecate the import. |
|
@ibuclaw ping |
|
Rebased. |
No, there isn't a better way of doing this. Complements to @schveiguy for an initial version of this PR.Rebased and updated following dmd fix.