]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #52640 - Thomasdezeeuw:fix-localwaker-clone, r=cramertj
authorkennytm <kennytm@gmail.com>
Tue, 24 Jul 2018 01:49:58 +0000 (09:49 +0800)
committerGitHub <noreply@github.com>
Tue, 24 Jul 2018 01:49:58 +0000 (09:49 +0800)
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.


Trivial merge