Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/std/io/internal/iovec.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct TempIOVecs
@trusted @nogc pure nothrow:
enum iovec* useStack = () @trusted{ return cast(iovec*) size_t.max; }();

this(return scope inout(ubyte[])[] bufs)
this(return scope inout(ubyte[])[] bufs) scope
{
import core.exception : onOutOfMemoryError;

Expand Down
8 changes: 4 additions & 4 deletions src/std/io/internal/string.d
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ enum isStringLike(S) = (isInputRange!S && !isInfinite!S && isSomeChar!(ElementEn
struct String
{
nothrow pure @safe @nogc:
this(const char[] s) @trusted
this(scope const(char)[] s) scope @trusted
{
ptr = s.ptr;
len = cast(uint) s.length;
}

this(S)(scope S s) if (isStringLike!S)
this(S)(scope S s) scope if (isStringLike!S)
{
this ~= s;
}
Expand Down Expand Up @@ -102,7 +102,7 @@ nothrow pure @safe @nogc:
}

///
String clone() scope
String clone() return scope //@trusted
{
return String(this[]);
}
Expand All @@ -121,7 +121,7 @@ nothrow pure @safe @nogc:

private:

this(const(char)* ptr, uint len, uint cap)
this(const(char)* ptr, uint len, uint cap) scope
{
this.ptr = ptr;
this.len = len;
Expand Down
2 changes: 1 addition & 1 deletion src/std/io/net/socket.d
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ package(std.io.net):
private:
import std.typecons : Tuple;

this(return scope Driver.SOCKET s, bool cod) @trusted pure nothrow
this(scope Driver.SOCKET s, bool cod) @trusted pure nothrow
{
this.s = s;
this.closeOnDestroy = cod;
Expand Down
2 changes: 1 addition & 1 deletion src/std/io/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class IOObject(IO) : IOInterfaces!IO
{
@safe @nogc:
/// construct class from `io`
this(IO io)
this(IO io) scope
{
this.io = io.move;
}
Expand Down