Skip to content

Commit eb8aed9

Browse files
committed
adjust setops.cartesianProduct() for dip1000
1 parent 6b9ce38 commit eb8aed9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

std/algorithm/setops.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ if (ranges.length >= 2 &&
393393
return mixin(algoFormat("tuple(%(current[%d].front%|,%))",
394394
iota(0, current.length)));
395395
}
396-
void popFront()
396+
void popFront() scope @trusted // @trusted until dmd #9220 is pulled
397397
{
398398
foreach_reverse (i, ref r; current)
399399
{
@@ -406,12 +406,12 @@ if (ranges.length >= 2 &&
406406
r = ranges[i].save; // rollover
407407
}
408408
}
409-
@property Result save()
409+
@property Result save() scope return
410410
{
411411
Result copy = this;
412412
foreach (i, r; ranges)
413413
{
414-
copy.ranges[i] = r.save;
414+
copy.ranges[i] = ranges[i].save;
415415
copy.current[i] = current[i].save;
416416
}
417417
return copy;

0 commit comments

Comments
 (0)