Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dip1000.mak
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ aa[std.net.curl]=-dip1000 # TODO have a look into open https://github.com/dlang/
aa[std.net.isemail]=-dip1000

aa[std.range.interfaces]=-dip1000
aa[std.range.package]=-dip25 # reference to local variable a / b assigned to non-scope parameter _param_1 / _param_2 calling std.range.chooseAmong!(RefAccessRange, RefAccessRange).chooseAmong
aa[std.range.package]=-dip1000
aa[std.range.primitives]=-dip1000

aa[std.regex.package]=-dip1000
Expand Down
12 changes: 6 additions & 6 deletions std/range/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -1718,12 +1718,12 @@ if (Ranges.length >= 2
static struct RefAccessRange
{
int[] r;
ref front() @property { return r[0]; }
ref back() @property { return r[$ - 1]; }
scope ref front() @property { return r[0]; }
scope ref back() @property { return r[$ - 1]; }
void popFront() { r = r[1 .. $]; }
void popBack() { r = r[0 .. $ - 1]; }
auto empty() @property { return r.empty; }
ref opIndex(size_t i) { return r[i]; }
scope ref opIndex(size_t i) { return r[i]; }
auto length() @property { return r.length; }
alias opDollar = length;
auto save() { return this; }
Expand Down Expand Up @@ -5059,15 +5059,15 @@ nothrow pure @system unittest
static struct NonSliceableRandomAccess
{
private int[] a;
@property ref front()
@property scope ref front()
{
return a.front;
}
@property ref back()
@property scope ref back()
{
return a.back;
}
ref opIndex(size_t i)
scope ref opIndex(size_t i)
{
return a[i];
}
Expand Down