diff options
| author | bors <bors@rust-lang.org> | 2018-07-13 19:49:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-13 19:49:11 +0000 |
| commit | 254f8796b729810846e2b97620032ecaf103db33 (patch) | |
| tree | 3f6f72f45ebee9ca520da7781fd1d02a2445f4f7 /src/libcore/task | |
| parent | fe29a4cda59ee60c6fbfa8a52429b27a596aaa6d (diff) | |
| parent | ea9b8dd4bd7e6e8bd563af9a699a572d564d8a5d (diff) | |
| download | rust-254f8796b729810846e2b97620032ecaf103db33.tar.gz rust-254f8796b729810846e2b97620032ecaf103db33.zip | |
Auto merge of #52352 - kennytm:rollup, r=kennytm
Rollup of 17 pull requests Successful merges: - #51962 (Provide llvm-strip in llvm-tools component) - #52003 (Implement `Option::replace` in the core library) - #52156 (Update std::ascii::ASCIIExt deprecation notes) - #52280 (llvm-tools-preview: fix build-manifest) - #52290 (Deny bare trait objects in src/librustc_save_analysis) - #52293 (Deny bare trait objects in librustc_typeck) - #52299 (Deny bare trait objects in src/libserialize) - #52300 (Deny bare trait objects in librustc_target and libtest) - #52302 (Deny bare trait objects in the rest of rust) - #52310 (Backport 1.27.1 release notes to master) - #52315 (Resolve FIXME(#27942)) - #52316 (task: remove wrong comments about non-existent LocalWake trait) - #52322 (Update llvm-rebuild-trigger in light of LLVM 7 upgrade) - #52330 (Don't silently ignore invalid data in target spec) - #52333 (CI: Enable core dump on Linux, and print their stack trace on segfault. ) - #52346 (Fix typo in improper_ctypes suggestion) - #52350 (Bump bootstrap compiler to 1.28.0-beta.10) Failed merges: r? @ghost
Diffstat (limited to 'src/libcore/task')
| -rw-r--r-- | src/libcore/task/wake.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libcore/task/wake.rs b/src/libcore/task/wake.rs index 418d5af006f..d3df8b50ee2 100644 --- a/src/libcore/task/wake.rs +++ b/src/libcore/task/wake.rs @@ -113,8 +113,8 @@ impl LocalWaker { /// but you otherwise shouldn't call it directly. /// /// If you're working with the standard library then it's recommended to - /// use the `LocalWaker::from` function instead which works with the safe - /// `Rc` type and the safe `LocalWake` trait. + /// use the `local_waker_from_nonlocal` or `local_waker` to convert a `Waker` + /// into a `LocalWaker`. /// /// For this function to be used safely, it must be sound to call `inner.wake_local()` /// on the current thread. @@ -197,9 +197,7 @@ impl Drop for LocalWaker { /// customization. /// /// When using `std`, a default implementation of the `UnsafeWake` trait is provided for -/// `Arc<T>` where `T: Wake` and `Rc<T>` where `T: LocalWake`. -/// -/// Although the methods on `UnsafeWake` take pointers rather than references, +/// `Arc<T>` where `T: Wake`. pub unsafe trait UnsafeWake: Send + Sync { /// Creates a clone of this `UnsafeWake` and stores it behind a `Waker`. /// |
