mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
e4991b2f48
Use box syntax instead of Box::new in Mutex::remutex on Windows The Box::new(mem::uninitialized()) pattern actually actively copies uninitialized bytes from the stack into the box, which is a waste of time. Using the box syntax instead avoids the useless copy.