diff --git a/std/path.d b/std/path.d index 88b817d4588..5f3fc389e36 100644 --- a/std/path.d +++ b/std/path.d @@ -1276,7 +1276,7 @@ auto withDefaultExtension(R, C)(auto ref R path, C[] ext) Returns: The assembled path. */ immutable(ElementEncodingType!(ElementType!Range))[] - buildPath(Range)(Range segments) + buildPath(Range)(scope Range segments) if (isInputRange!Range && isSomeString!(ElementType!Range)) { if (segments.empty) return null; diff --git a/std/uni.d b/std/uni.d index 563ebe3d5fd..34d9ab1a315 100644 --- a/std/uni.d +++ b/std/uni.d @@ -6657,13 +6657,13 @@ public: Warning: Invalidates when this Grapheme leaves the scope, attempts to use it then would lead to memory corruption. +/ - @system SliceOverIndexed!Grapheme opSlice(size_t a, size_t b) pure nothrow @nogc + @system SliceOverIndexed!Grapheme opSlice(size_t a, size_t b) return pure nothrow @nogc { return sliceOverIndexed(a, b, &this); } /// ditto - @system SliceOverIndexed!Grapheme opSlice() pure nothrow @nogc + @system SliceOverIndexed!Grapheme opSlice() return pure nothrow @nogc { return sliceOverIndexed(0, length, &this); }