From ab08491540ebd61f2273252a84d3af89a7ded666 Mon Sep 17 00:00:00 2001 From: nordlow Date: Fri, 14 May 2021 13:09:53 +0200 Subject: [PATCH] Annotate `toThread` parameter `t` with `return scope` --- src/core/thread/osthread.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/thread/osthread.d b/src/core/thread/osthread.d index c1b25d2a9d..2915225865 100644 --- a/src/core/thread/osthread.d +++ b/src/core/thread/osthread.d @@ -983,7 +983,7 @@ class Thread : ThreadBase } } -private Thread toThread(ThreadBase t) @trusted nothrow @nogc pure +private Thread toThread(return scope ThreadBase t) @trusted nothrow @nogc pure { return cast(Thread) cast(void*) t; }