Skip to content

Commit 2d2d010

Browse files
committed
Revert @trusted hotfix for std.uni
1 parent 4211eec commit 2d2d010

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

std/uni.d

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,20 +2170,21 @@ public struct InversionList(SP=GcPolicy)
21702170

21712171
/**
21722172
Get range that spans all of the $(CODEPOINT) intervals in this $(LREF InversionList).
2173+
*/
2174+
@property auto byInterval() scope
2175+
{
2176+
import std.array : array;
2177+
return Intervals!(typeof(data.array))(data.array);
2178+
}
21732179

2174-
Example:
2175-
-----------
2180+
@safe unittest
2181+
{
21762182
import std.algorithm.comparison : equal;
21772183
import std.typecons : tuple;
21782184

21792185
auto set = CodepointSet('A', 'D'+1, 'a', 'd'+1);
21802186

21812187
assert(set.byInterval.equal([tuple('A','E'), tuple('a','e')]));
2182-
-----------
2183-
*/
2184-
@property auto byInterval() scope return
2185-
{
2186-
return Intervals!(typeof(data))(data);
21872188
}
21882189

21892190
package @property const(CodepointInterval)[] intervals() const
@@ -2791,7 +2792,7 @@ private:
27912792
// a random-access range of integral pairs
27922793
static struct Intervals(Range)
27932794
{
2794-
this(return scope Range sp) scope @trusted // FIXME
2795+
this(Range sp) scope
27952796
{
27962797
slice = sp;
27972798
start = 0;

0 commit comments

Comments
 (0)