Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 22fbfc7

Browse files
nordlowdlang-bot
authored andcommitted
Annotate toThread parameter t with return scope
1 parent 0b855b0 commit 22fbfc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/thread/osthread.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ class Thread : ThreadBase
983983
}
984984
}
985985

986-
private Thread toThread(ThreadBase t) @trusted nothrow @nogc pure
986+
private Thread toThread(return scope ThreadBase t) @trusted nothrow @nogc pure
987987
{
988988
return cast(Thread) cast(void*) t;
989989
}

0 commit comments

Comments
 (0)