From 2f0386771d17703d8e5ea9abef3359770b51af3f Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Thu, 1 Oct 2020 01:08:51 +0200 Subject: [PATCH] No longer put mutexes on the 'unsupported' platform in a box. These mutexes are just a bool (in a cell), so can be moved without problems. --- library/std/src/sys/unsupported/mutex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sys/unsupported/mutex.rs b/library/std/src/sys/unsupported/mutex.rs index a28f2cf4ffe..06ea9a1e2c1 100644 --- a/library/std/src/sys/unsupported/mutex.rs +++ b/library/std/src/sys/unsupported/mutex.rs @@ -4,7 +4,7 @@ pub struct Mutex { locked: UnsafeCell, } -pub type MovableMutex = Box; +pub type MovableMutex = Mutex; unsafe impl Send for Mutex {} unsafe impl Sync for Mutex {} // no threads on this platform