diff --git a/std/exception.d b/std/exception.d index 5a03e6311..ff1c770a1 100644 --- a/std/exception.d +++ b/std/exception.d @@ -326,7 +326,7 @@ unittest * */ -immutable(T)[] assumeUnique(T)(ref T[] array) @safe pure nothrow +immutable(T)[] assumeUnique(T)(ref T[] array) pure nothrow { auto result = cast(immutable(T)[]) array; array = null; @@ -340,7 +340,7 @@ unittest assert(is(typeof(arr1) == immutable(int)[]) && arr == null); } -immutable(T[U]) assumeUnique(T, U)(ref T[U] array) @safe pure nothrow +immutable(T[U]) assumeUnique(T, U)(ref T[U] array) pure nothrow { auto result = cast(immutable(T[U])) array; array = null;