From c559216ad0d2f0737f8dbb51a7d42b1727b77b3c Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Fri, 30 Nov 2018 10:39:12 +0530 Subject: Change sys::Thread::new to take the thread entry as Box̣ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libstd/sys/windows/thread.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libstd/sys/windows') diff --git a/src/libstd/sys/windows/thread.rs b/src/libstd/sys/windows/thread.rs index 85588cc6c8e..1a97dd10ced 100644 --- a/src/libstd/sys/windows/thread.rs +++ b/src/libstd/sys/windows/thread.rs @@ -28,7 +28,8 @@ pub struct Thread { } impl Thread { - pub unsafe fn new<'a>(stack: usize, p: Box) + // unsafe: see thread::Builder::spawn_unchecked for safety requirements + pub unsafe fn new(stack: usize, p: Box) -> io::Result { let p = box p; -- cgit 1.4.1-3-g733a5