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

Commit 8d2c995

Browse files
committed
Annotate toThread parameter t with return scope
1 parent f9246f4 commit 8d2c995

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)