WIP: Annotate with return or return scope to please dlang/dmd#12520#8076
WIP: Annotate with return or return scope to please dlang/dmd#12520#8076nordlow wants to merge 2 commits intodlang:masterfrom
return or return scope to please dlang/dmd#12520#8076Conversation
|
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 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#8076" |
298a3ba to
8880bd0
Compare
|
I don't know why https://app.circleci.com/pipelines/github/dlang/phobos/4197/workflows/22bf7ec0-e91a-4bdf-aec8-6422abb5f439/jobs/13744?invite=true#step-104-95 fails considering the fact that that line has been disabled using |
return or return scopereturn or return scope to please dlang/dmd#12520
|
A general comment about BigInt: A lot of the functions look like this (pseudo code): BigInt opBinary(BigInt other) {
if (we're lucky) {
return [bigint with slice of the existing big digits]
} else {
return [newly allocated big digits with computation result]
}
}There's two ways to approach this:
I'd say: use |
|
A general comment about this PR: It gives a neat overview, but please split it up at some point into smaller PR's (one per module / part) so it can be reviewed more easily and regressions can be bisected with more granularity. I happen to have familiarity with bigint, but can't help you with most other modules, and adding |
But does it work when you apply dlang/dmd#10924 or dlang/dmd#12010 to make it an error? |
My initial phobos branch buillt without any deprecations when using https://github.com/dlang/dmd/pull/10924/files, yes. As will all the sub-PRs. The local build stopped on a deprecation message. |
|
@nordlow I pulled out a couple of files from this PR into separate PRs to make it smaller and more tractable. |
|
Does this depend solely on #8085 now? |
|
Closing this because of sub-PR has been created and out of those only #8085 remains. After that has been merged this PR adds no extra changes. |
return or return scope to please dlang/dmd#12520return or return scope to please dlang/dmd#12520
…lang/dmd#12520 dlang#8076 Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
…lang/dmd#12520 dlang#8076 Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Closed because this has been superceeded by a set of sub-pull-requests listed below.
Unblocks dlang/dmd#12520.
make -f posix.mak unittestpasses locally for me now when using dlang/dmd#12520.There are a couple of places where I had to qualify as
@trustedto silence. I've commented those places with a TODO.Furthermore, there are several places where I have no idea how to explain to the compiler that the code should compile when lambdas inside
mapandfile. For instance,erroring as
Not even qualifying
listdiras@trustedsilences the diagnostics. Shouldn't it?