mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Don't put hermit mutexes in a box.
Hermit mutexes are movable.
This commit is contained in:
parent
f45ebe459f
commit
fffa88eb27
@ -156,7 +156,7 @@ pub struct Mutex {
|
||||
inner: Spinlock<MutexInner>,
|
||||
}
|
||||
|
||||
pub type MovableMutex = Box<Mutex>;
|
||||
pub type MovableMutex = Mutex;
|
||||
|
||||
unsafe impl Send for Mutex {}
|
||||
unsafe impl Sync for Mutex {}
|
||||
|
Loading…
Reference in New Issue
Block a user