-
Notifications
You must be signed in to change notification settings - Fork 80
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
Draft: Use @safe and @trusted #840
base: master
Are you sure you want to change the base?
Conversation
{ | ||
} | ||
else | ||
int main(string[] args) | ||
int main(string[] args) @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.
What is the point of this change?
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.
shouldn't main be @safe
instead of @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.
Unless I am missing something, this doesn't change the allocator at all. It simply adds safe and trusted.
You're correct. I'll update the title. |
@@ -81,7 +81,7 @@ protected: | |||
override void visit(const T structDec) | |||
{ | |||
inAggregate = true; | |||
structDec.accept(this); | |||
() @trusted { structDec.accept(this); } (); |
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.
I don't think this accept call can generally be @trust
ed, this should probably stay @system
{ | ||
} | ||
else | ||
int main(string[] args) | ||
int main(string[] args) @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.
shouldn't main be @safe
instead of @trusted
?
Depends on dlang-community/dsymbol#162.
Also inserts some @safe and @trusted mainly in dsymbol.
Using this in call to
in phobos passes without crash.