Skip to content
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

checkedint.Abort and checkedint.Warn should be @safe #7909

Merged
merged 1 commit into from Mar 24, 2021

Conversation

n8sh
Copy link
Member

@n8sh n8sh commented Mar 24, 2021

No description provided.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @n8sh!

Bugzilla references

Auto-close Bugzilla Severity Description
18024 enhancement checkedint.Abort and checkedint.Warn should be @safe

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + phobos#7909"

@@ -1471,7 +1471,7 @@ default behavior.
*/
struct Warn
{
import std.stdio : stderr;
import std.stdio : writefln;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated but shouldn't this be private imports?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In current version of DMD writing private import is no longer necessary because imports are private by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants