From 6d5cc55e467ea086e7f1e846f9912737fdbc232d Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Tue, 17 Jan 2017 21:03:04 -0800 Subject: [PATCH] path.d and uni.d: fix -dip1000 errors --- std/path.d | 2 +- std/uni.d | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }