about summary refs log tree commit diff
path: root/src/libcore/task
diff options
context:
space:
mode:
authorSean McArthur <sean@seanmonstar.com>2018-07-12 15:43:57 -0700
committerSean McArthur <sean@seanmonstar.com>2018-07-12 15:43:57 -0700
commit4f4e91a69d75b5de66d53399027cc1835387a423 (patch)
tree661c57a8a52960b459277ea69909b59708204340 /src/libcore/task
parent7db82ccd765cbfe55c3d8a2c434bc6f9b986843d (diff)
downloadrust-4f4e91a69d75b5de66d53399027cc1835387a423.tar.gz
rust-4f4e91a69d75b5de66d53399027cc1835387a423.zip
task: remove wrong comments about non-existent LocalWake trait
Diffstat (limited to 'src/libcore/task')
-rw-r--r--src/libcore/task/wake.rs8
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`.
     ///