Uh oh!
There was an error while loading. Please reload this page.
Add doc for impl From for Waker - #53507
Conversation
rust-highfive
commented
Aug 19, 2018
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
dtolnay
commented
Aug 20, 2018
@bors delegate=skade |
bors
commented
Aug 20, 2018
✌️ @skade can now approve this pull request |
emilyalbini
commented
Aug 27, 2018
Ping from triage @skade! This PR needs your review. |
TimNN
commented
Sep 4, 2018
Ping from triage @skade / @rust-lang/docs: This PR requires your review. |
GuillaumeGomez
commented
Sep 4, 2018
Please add an example. |
phungleson
commented
Sep 6, 2018
Hey, I am currently traveling, will look at this again in around 3 weeks. |
GuillaumeGomez
commented
Sep 6, 2018
No problem, we'll wait for you! |
phungleson
commented
Sep 28, 2018
@GuillaumeGomez writing examples for this seems harder than I expected, e.g. creating LocalWake of some sort of UnsafeWake Do you have any good examples or good documents about these things? And also not sure with all movement of futures api, are these struct gonna be necessary? |
GuillaumeGomez
commented
Sep 28, 2018
Nothing coming to my mind right now... In the worst case, just show a code example demonstrating how the |
frewsxcv
commented
Sep 29, 2018
@GuillaumeGomez Do you know how to create a |
GuillaumeGomez
commented
Sep 29, 2018
Never used it so no. Maybe someone from the @rust-lang/libs or @rust-lang/compiler might know? |
cramertj
commented
Oct 1, 2018
You can use |
frewsxcv
commented
Oct 7, 2018
Even with cramertj's links, it's not immediately clear how to instantiate these for doc example purposes, so this PR seems good as-is. Thanks for your contribution @phungleson! @bors r+ rollup |
bors
commented
Oct 7, 2018
📌 Commit a84782cb0785b3b3f6cb5af73b5256bffa2a4083 has been approved by |
bors
commented
Oct 7, 2018
⌛ Testing commit a84782cb0785b3b3f6cb5af73b5256bffa2a4083 with merge 29d791f6c6c7ee2dbbed0b5b132c0fa14387baa1... |
bors
commented
Oct 7, 2018
💔 Test failed - status-travis |
rust-highfive
commented
Oct 7, 2018
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
emilyalbini
commented
Oct 7, 2018
@bors r- |
TimNN
commented
Oct 16, 2018
Ping form triage @phungleson: It looks like your PR failed on travis and needs to updated. |
TimNN
commented
Oct 23, 2018
Ping from triage @withoutboats: It looks like this PR is now ready for your review. |
| impl From<LocalWaker> for Waker { | ||
| /// Converts a `LocalWaker` into a `Waker`. | ||
| /// | ||
| /// This conversion forgets local waker and allocates a new waker with |
There was a problem hiding this comment.
allocate is misleading here, since no new allocation is occurring. What about "This conversion turns a !SyncLocalWaker into a SyncWaker, allowing a wakeup object to be sent to another thread, but giving up its ability to do specialized thread-local wakeup behavior."
phungleson
commented
Oct 23, 2018
Thanks @cramertj it is updated |
cramertj
commented
Oct 23, 2018
@bors r+ rollup |
bors
commented
Oct 23, 2018
📌 Commit 3539132 has been approved by |
… r=cramertj Add doc for impl From for Waker As part of issue rust-lang#51430 (cc @skade). The impl is very simple, so not sure if we need to go into any details.
… r=cramertj Add doc for impl From for Waker As part of issue rust-lang#51430 (cc @skade). The impl is very simple, so not sure if we need to go into any details.
Rollup of 22 pull requests Successful merges: - #53507 (Add doc for impl From for Waker) - #53931 (Gradually expanding libstd's keyword documentation) - #54965 (update tcp stream documentation) - #54977 (Accept `Option<Box<$t:ty>>` in macro argument) - #55138 (in which unused-parens suggestions heed what the user actually wrote) - #55173 (Suggest appropriate syntax on missing lifetime specifier in return type) - #55200 (Documents `From` implementations for `Stdio`) - #55245 (submodules: update clippy from 5afdf8b to b1d0343) - #55247 (Clarified code example in char primitive doc) - #55251 (Fix a typo in the documentation of RangeInclusive) - #55253 (only issue "variant of the expected type" suggestion for enums) - #55254 (Correct trailing ellipsis in name_from_pat) - #55269 (fix typos in various places) - #55282 (Remove redundant clone) - #55285 (Do some copy editing on the release notes) - #55291 (Update stdsimd submodule) - #55296 (Set RUST_BACKTRACE=0 for rustdoc-ui/failed-doctest-output.rs) - #55306 (Regression test for #54478.) - #55328 (Fix doc for new copysign functions) - #55340 (Operands no longer appear in places) - #55345 (Remove is_null) - #55348 (Update RELEASES.md after destabilization of non_modrs_mods) Failed merges: r? @ghost
As part of issue #51430 (cc @skade).
The impl is very simple, so not sure if we need to go into any details.