From 8bf6c0b0965dfbee81b3931234cda239d953c7f0 Mon Sep 17 00:00:00 2001 From: aG0aep6G Date: Thu, 20 May 2021 22:12:26 +0200 Subject: [PATCH] add `scope` to parameters of `toUTF32` and `toUTFImpl` --- std/utf.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/utf.d b/std/utf.d index 052b235d971..7059e8215e7 100644 --- a/std/utf.d +++ b/std/utf.d @@ -3004,7 +3004,7 @@ if (isInputRange!S && !isInfinite!S && isSomeChar!(ElementEncodingType!S)) * See_Also: * For a lazy, non-allocating version of these functions, see $(LREF byUTF). */ -dstring toUTF32(S)(S s) +dstring toUTF32(S)(scope S s) if (isInputRange!S && !isInfinite!S && isSomeChar!(ElementEncodingType!S)) { return toUTFImpl!dstring(s); @@ -3023,7 +3023,7 @@ if (isInputRange!S && !isInfinite!S && isSomeChar!(ElementEncodingType!S)) assert("𐐷"w.toUTF32.equal([0x00010437])); } -private T toUTFImpl(T, S)(S s) +private T toUTFImpl(T, S)(scope S s) { static if (is(S : T)) {