Skip to content

Commit 7e12052

Browse files
committed
dip1000 support
1 parent e3c023a commit 7e12052

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/mir/rc/array.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,20 +253,20 @@ struct mir_rcarray(T)
253253
}
254254

255255
///
256-
ref opAssign(typeof(null)) return @trusted // pure nothrow @nogc
256+
ref opAssign(typeof(null)) scope return @trusted // pure nothrow @nogc
257257
{
258258
this = typeof(this).init;
259259
}
260260

261261
///
262-
ref opAssign(return typeof(this) rhs) return @trusted // pure nothrow @nogc
262+
ref opAssign(scope return typeof(this) rhs) scope return @trusted // pure nothrow @nogc
263263
{
264264
this.proxySwap(rhs);
265265
return this;
266266
}
267267

268268
///
269-
ref opAssign(Q)(return ThisTemplate!Q rhs) return @trusted // pure nothrow @nogc
269+
ref opAssign(Q)(scope return ThisTemplate!Q rhs) scope return @trusted // pure nothrow @nogc
270270
if (isImplicitlyConvertible!(Q*, T*))
271271
{
272272
this.proxySwap(*()@trusted{return cast(typeof(this)*)&rhs;}());

source/mir/series.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ struct mir_series(IndexIterator_, Iterator_, size_t N_ = 1, SliceKind kind_ = Co
348348
private static immutable defaultExc() = new Exception(defaultMsg!() ~ " required key");
349349

350350
///
351-
void serdeFinalize()() @trusted
351+
void serdeFinalize()() @trusted scope
352352
{
353353
import mir.algorithm.iteration: any;
354354
import mir.ndslice.topology: pairwise;

0 commit comments

Comments
 (0)