-
-
Notifications
You must be signed in to change notification settings - Fork 610
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 Issue 20015 - [REG 2.086] Deprecated -preview, -revert, and -transition options not documented #13784
Conversation
|
Thanks for your pull request and interest in making D better, @RazvanN7! 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. Bugzilla references
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 "stable + dmd#13784" |
|
cc @ibuclaw |
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.
Test[s]?
|
I didn't add any because, currently, all deprecated features have their documentation purged and the fix is obviously correct. |
|
Furthermore, I don't see any tests for cli switches in the fail compilation directory. I understand where you come from @Geod24 , but I think that in this situation we can just merge this as is. |
|
See Shouldn't some of these tests fail with this PR? |
Side note: The main point of test is not to ensure that things work today (although it's still a pretty important side of it), but to ensure that they will work tomorrow. This is especially important for regression, because we have evidence of something that used to work that doesn't anymore.
https://github.com/dlang/dmd/blob/master/test/fail_compilation/reserved_version_switch.d |
|
@Geod24 At this point there is no deprecated switch with public documentation in dmd. There is a deprecated transition (complex) and a deprecated preview (intpromote) but both have their public documentation disabled. One thing I could do is to enable their documentation and list them as deprecated. If that is not acceptable, then I don't know how I could possibly test this without introducing a mock-up deprecation. What do you think? |
bfe64a1 to
1bdda90
Compare
|
@Geod24 The |
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.
Yes, that test is enough IMO
…sition options not documented
It's good that the default was enabled but the switch became a no-op (and not deprecated). That's what we did for |
No description provided.