-
-
Notifications
You must be signed in to change notification settings - Fork 651
refactor: Add attributes to dmd.common.{outbuffer,file} #15531
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
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request, @PetarKirov! 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 + dmd#15531" |
This is part of a bigger branch, where I was able to add |
This must be happening because the CI is using an older version of bootstrap dmd. Perhaps I should redefine the |
compiler/src/dmd/common/outbuffer.d
Outdated
@@ -73,7 +73,7 @@ struct OutBuffer | |||
Params: | |||
filename = zero-terminated name of file to map into memory | |||
*/ | |||
@trusted this(const(char)* filename) | |||
this(const(char)* filename) @trusted |
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.
do we not have a mallocNew!(T)(Args...)
that we could have be @trusted
instead?
7816845
to
654ff94
Compare
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.
While in general I like @nogc, it doesn't serve much purpose in the dmd source code because dmd uses the gc here and there.
I tried adding |
@WalterBright, yes I followed the progress on the That said, I still find value in explicit attributes for the use case of using dmd as a library. I plan to continue work on this PR once I have time. |
@PetarKirov Any updates on this? |
@nogc
and harmonize attributes