about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-07-24 09:49:58 +0800
committerGitHub <noreply@github.com>2018-07-24 09:49:58 +0800
commitb3c9fe2537b528424333d10e5fc491a0fa050dc2 (patch)
treec31cfe45abe4668f7e08482f046eecb49e023492 /src/rustllvm/RustWrapper.cpp
parent3af372ad574bb952f728f18ac7262f1dc6503864 (diff)
parent89495f3ca33b8a236ee8bc4f89a64a500fe2391f (diff)
downloadrust-b3c9fe2537b528424333d10e5fc491a0fa050dc2.tar.gz
rust-b3c9fe2537b528424333d10e5fc491a0fa050dc2.zip
Rollup merge of #52640 - Thomasdezeeuw:fix-localwaker-clone, r=cramertj
Forget Waker when cloning LocalWaker

Since NonNull is Copy the inner field of the cloned Waker was copied for
use in the new LocalWaker, however this left Waker to be dropped. Which
means that when cloning LocalWaker would also erroneously call drop_raw.

This change forgets the Waker, rather then dropping it, leaving the
inner field to be used by the returned LocalWaker.

Closes #52629.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions