Skip to content

Commit 4f4e91a

Browse files
committed
task: remove wrong comments about non-existent LocalWake trait
1 parent 7db82cc commit 4f4e91a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/libcore/task/wake.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ impl LocalWaker {
113113
/// but you otherwise shouldn't call it directly.
114114
///
115115
/// If you're working with the standard library then it's recommended to
116-
/// use the `LocalWaker::from` function instead which works with the safe
117-
/// `Rc` type and the safe `LocalWake` trait.
116+
/// use the `local_waker_from_nonlocal` or `local_waker` to convert a `Waker`
117+
/// into a `LocalWaker`.
118118
///
119119
/// For this function to be used safely, it must be sound to call `inner.wake_local()`
120120
/// on the current thread.
@@ -197,9 +197,7 @@ impl Drop for LocalWaker {
197197
/// customization.
198198
///
199199
/// When using `std`, a default implementation of the `UnsafeWake` trait is provided for
200-
/// `Arc<T>` where `T: Wake` and `Rc<T>` where `T: LocalWake`.
201-
///
202-
/// Although the methods on `UnsafeWake` take pointers rather than references,
200+
/// `Arc<T>` where `T: Wake`.
203201
pub unsafe trait UnsafeWake: Send + Sync {
204202
/// Creates a clone of this `UnsafeWake` and stores it behind a `Waker`.
205203
///

0 commit comments

Comments
 (0)