Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 1cb7499

Browse files
authored
Merge pull request #3801 from ljmf00/add-nogc-asserterror
core/exception: annotate @nogc on AssertError ctors
2 parents 1d92f8f + a4bc2c0 commit 1cb7499

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/exception.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,17 @@ private void rangeMsgPut(ref char[] r, scope const(char)[] e) @nogc nothrow pure
218218
*/
219219
class AssertError : Error
220220
{
221-
@safe pure nothrow this( string file, size_t line )
221+
@safe pure nothrow @nogc this( string file, size_t line )
222222
{
223223
this(cast(Throwable)null, file, line);
224224
}
225225

226-
@safe pure nothrow this( Throwable next, string file = __FILE__, size_t line = __LINE__ )
226+
@safe pure nothrow @nogc this( Throwable next, string file = __FILE__, size_t line = __LINE__ )
227227
{
228228
this( "Assertion failure", file, line, next);
229229
}
230230

231-
@safe pure nothrow this( string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null )
231+
@safe pure nothrow @nogc this( string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null )
232232
{
233233
super( msg, file, line, next );
234234
}

0 commit comments

Comments
 (0)