From cf131b797d6013a05e79c6020ffcbb8c56ee93f4 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Tue, 15 Nov 2022 17:40:33 +0000 Subject: [PATCH] Make StdioException.opCall @safe --- std/stdio.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/stdio.d b/std/stdio.d index a7bf79a2a..62595fd44 100644 --- a/std/stdio.d +++ b/std/stdio.d @@ -5167,13 +5167,13 @@ Initialize with a message and an error code. } /** Convenience functions that throw an `StdioException`. */ - static void opCall(string msg) + static void opCall(string msg) @safe { throw new StdioException(msg); } /// ditto - static void opCall() + static void opCall() @safe { throw new StdioException(null, core.stdc.errno.errno); }