about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2018-04-04 19:30:46 +0900
committerMike Hommey <mh@glandium.org>2018-04-04 19:30:46 +0900
commit4577da75f4badd66a337eb15da76ca836ab1ad6e (patch)
treecb2e71939bcdf1bcd5475d4d2c7cd2f1aca800c6 /src/rustllvm/RustWrapper.cpp
parent199b7e211d6d9173fded261e0a4de984efc0c2eb (diff)
downloadrust-4577da75f4badd66a337eb15da76ca836ab1ad6e.tar.gz
rust-4577da75f4badd66a337eb15da76ca836ab1ad6e.zip
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions