Skip to content

Commit

Permalink
Removed package wide std.range import from std.regex.internal.ir
Browse files Browse the repository at this point in the history
  • Loading branch information
JackStouffer committed Jul 4, 2016
1 parent 0306062 commit f9001ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion std/regex/internal/ir.d
Expand Up @@ -9,7 +9,7 @@ module std.regex.internal.ir;

package(std.regex):

import std.exception, std.uni, std.meta, std.traits, std.range;
import std.exception, std.uni, std.meta, std.traits, std.range.primitives;

debug(std_regex_parser) import std.stdio;
// just a common trait, may be moved elsewhere
Expand Down Expand Up @@ -372,6 +372,7 @@ struct Group(DataIndex)
DataIndex begin, end;
@trusted string toString()() const
{
import std.array : appender;
import std.format : formattedWrite;
auto a = appender!string();
formattedWrite(a, "%s..%s", begin, end);
Expand Down Expand Up @@ -706,6 +707,7 @@ template BackLooper(E)
//
@trusted uint lookupNamedGroup(String)(NamedGroup[] dict, String name)
{//equal is @system?
import std.range : assumeSorted;
import std.conv : text;
import std.algorithm : map, equal;

Expand Down

0 comments on commit f9001ae

Please sign in to comment.