Turn deprecation into error for issue 313#8443
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 fetch digger
dub run digger -- build "master + dmd#8443" |
|
Looks like more tests need updating: |
| static import pkgDIP37.datetime; | ||
| static assert(!__traits(compiles, def())); | ||
| pkgDIP37.datetime.def(); | ||
| pkgDIP37.datetime.common.def(); |
There was a problem hiding this comment.
Rather than deleting this, should we instead add static import pkgDIP32.datetime.common, perhaps in a different scope?
There was a problem hiding this comment.
I don't see the point in that: the code will error if that different scope does not include test7's scope.
There was a problem hiding this comment.
The alternative would be static assert(!__traits(compiles, ...)
test/fail_compilation/fail313.d
Outdated
| @@ -2,11 +2,11 @@ | |||
| REQUIRED_ARGS: -de | |||
|
Do you plan to do the rest of the protection code as well ? Because the time as come, and we might as well just remove the protection code instead of issuing a specific error... The former is more user friendly, though. |
|
Forgot there was a PR for it already... Yeah that was what I was thinking about. |
|
Looks like FreeBSD is spuriously failing again. |
| The deprecation phase for fully qualified names that bypassed private imports is finished | ||
|
|
||
| --- | ||
| ========================= |
| static import pkgDIP37.datetime; | ||
| static assert(!__traits(compiles, def())); | ||
| pkgDIP37.datetime.def(); | ||
| pkgDIP37.datetime.common.def(); |
There was a problem hiding this comment.
The alternative would be static assert(!__traits(compiles, ...)
| // PERMUTE_ARGS: | ||
|
|
||
| module dstress.run.module_01; | ||
| module run.module_01; |
There was a problem hiding this comment.
Why was this change necessary?
There was a problem hiding this comment.
I'm not entirely sure why, but for dstress.run.module_01 you would get that dstress.run is not accessible from the current module; that is probably because there is no directory structure that matches the module declaration.
There was a problem hiding this comment.
But the folder run doesn't exist either, does it?
There was a problem hiding this comment.
actually its runnable
There was a problem hiding this comment.
That module declaration looks like a leftover from when code was copied into the test/runnable directory. Can't we just get rid of it?
| { | ||
| std.stdio.writefln("foo"); // deprecation before patch, now errors | ||
| } | ||
| ========================== |
6c57dd0 to
6af0031
Compare
|
@RazvanN7 looks like this needs more work. I can reproduce failure in ae locally. |
|
Looked a bit closer and the public import std.string;But as there was never a deprecation triggered, I'm not sure whether we can go ahead with this directly. Maybe related: CyberShadow/ae#33 |
Yes, that bug ought to be fixed first. |
I assume you're referring to a DMD bug. What specifically is the bug? Is it in bugzilla yet? Do you have a minimal test case to trigger the bug? |
|
Is Jenkins dead now? |
6af0031 to
e1d2952
Compare
|
Yes. |
|
Setting this to blocked, s.t. we remember that this can't be merged before the 2.082 has happened (~15.8). Regarding the project failures:
|
Might be fixed with dlang/druntime#2278 |
I do believe that we can unblock this now. |
|
@RazvanN7 rebase pls |
e1d2952 to
aca10e8
Compare
|
@ZombineDev Done. |
|
The ae failure at buildkite still looks genuine. |
|
@CyberShadow can you take a look at the ae errors? |
|
I literally can't. Could you please repaste the log? If I build this PR with Digger, ae builds and passes tests successfully with the resulting DMD. |
|
|
Oops, forgot to add |
Allows building with dlang/dmd#8443.
|
Pushed fix & tag. |
|
Ping. I think this is ready to be merged. |

No description provided.