WIP: fix Issue 20150 - -dip1000 return attribute must be explicit in pure (use deprecation instead of error)#12520
WIP: fix Issue 20150 - -dip1000 return attribute must be explicit in pure (use deprecation instead of error)#12520nordlow wants to merge 2 commits intodlang:masterfrom
Conversation
|
Thanks for your pull request and interest in making D better, @nordlow! 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 "master + dmd#12520" |
|
This a a serious bug, please target stable. |
Ok to split |
|
yes |
Good, I'll fix. |
|
What to do about druntime failing? Annotate druntime in another PR before we can merge this PR right? |
Seems so, yes. |
|
Phobos now triggers To alleviate, shall I qualify as For the class members I shall only use |
as I understand it
don't know. |
|
Will qualifying as |
|
As I understand, |
Indeed. So in fact qualifying members as |
While I can't find anything explicitly indicating it, to me it seems like |
I only this for now https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md |
|
When I first saw you suggest to use deprecations, I didn't think it was a good idea, and I agree with aG0aep6G: #12010 (comment) |
Great. I'm currently sifting through adjusting Phobos at dlang/phobos#8076. I'd be very happy to help figure if this is possible or not. You can look at the diff and search for TODO to get to the tricky parts. |
Annotate std/json.d to please dlang/dmd#12520
|
Gonna target |
That's not gonna work because your PRs from phobos targeted master, not stable. |
So I guess I should merge to dmd master first, @RazvanN7 ? |
|
Yes. |
|
Rebased and squashed. Removed WP from title. Let's see if third-party libraries in Circle CI trigger any deprecations. If they do but they pass is it ok to merge anyway? |
…functions Change error to deprecation Adjust retscope6.d
|
Seems Walter has recently updated the PR #10924 this PR is based upon. I'll notify him. That phobos is ready now. |
In my opinion, this is not ok to merge at all. Just like #10924, this introduces a rejects-valid regression. |
|
Hmm, the dmd tests fail. Need to investigate. |
|
This PR introduces a regression in scope analysis in fail20108.d. I update the test to make the diff highlight how the diagnostics is missing the line I could try to adjust the changes in |
That would be great. By the way, if you mention someone in an edit, they don't get an email notification. I only noticed this because I had it open in the browser. If you want to reach someone, better post a new comment. yes |
Yes |
Adjust #10924 to emit a deprecation instead of error and see how that goes.
After this gets merged the adding of @trusted qualifiers in the changes at
need to be reverted.