DScanner: automatially set all unattributed unittests to @safe or @system

This commit is contained in:
Sebastian Wilzbach 2017-02-20 19:06:10 +01:00
parent 9c794f5c87
commit a36cec8686
88 changed files with 838 additions and 838 deletions

View file

@ -94,7 +94,7 @@ if (fun.length >= 1)
return ror.map!(reduce!fun);
}
unittest
@safe unittest
{
import std.algorithm.comparison : equal, max, min;
@ -1037,7 +1037,7 @@ template each(alias pred = "a")
}
// #16255: `each` on opApply doesn't support ref
unittest
@safe unittest
{
int[] dynamicArray = [1, 2, 3, 4, 5];
int[5] staticArray = [1, 2, 3, 4, 5];
@ -1053,7 +1053,7 @@ unittest
}
// #16255: `each` on opApply doesn't support ref
unittest
@system unittest
{
struct S
{
@ -1889,7 +1889,7 @@ if (isInputRange!Range)
}
/// Showing usage with binary predicate:
/*FIXME: @safe*/ unittest
/*FIXME: @safe*/ @system unittest
{
import std.algorithm.comparison : equal;
@ -1939,7 +1939,7 @@ version(none) // this example requires support for non-equivalence relations
}
/// Showing usage with unary predicate:
/* FIXME: pure @safe nothrow*/ unittest
/* FIXME: pure @safe nothrow*/ @system unittest
{
import std.algorithm.comparison : equal;
import std.typecons : tuple;
@ -1988,7 +1988,7 @@ version(none) // this example requires support for non-equivalence relations
}
}
/*FIXME: pure @safe nothrow*/ unittest
/*FIXME: pure @safe nothrow*/ @system unittest
{
import std.algorithm.comparison : equal;
import std.typecons : tuple;
@ -4958,7 +4958,7 @@ if (isInputRange!Range && is(typeof(binaryFun!pred(r.front, r.front)) == bool))
}
///
@trusted unittest
@system unittest
{
import std.algorithm.comparison : equal;