We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9ce38 commit eb8aed9Copy full SHA for eb8aed9
std/algorithm/setops.d
@@ -393,7 +393,7 @@ if (ranges.length >= 2 &&
393
return mixin(algoFormat("tuple(%(current[%d].front%|,%))",
394
iota(0, current.length)));
395
}
396
- void popFront()
+ void popFront() scope @trusted // @trusted until dmd #9220 is pulled
397
{
398
foreach_reverse (i, ref r; current)
399
@@ -406,12 +406,12 @@ if (ranges.length >= 2 &&
406
r = ranges[i].save; // rollover
407
408
409
- @property Result save()
+ @property Result save() scope return
410
411
Result copy = this;
412
foreach (i, r; ranges)
413
414
- copy.ranges[i] = r.save;
+ copy.ranges[i] = ranges[i].save;
415
copy.current[i] = current[i].save;
416
417
return copy;
0 commit comments