Skip to content

Commit 275d31d

Browse files
committed
Revert new warning wording
This reverts the last three commits
1 parent f2f0f2e commit 275d31d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Diff for: library/core/src/task/wake.rs

-20
Original file line numberDiff line numberDiff line change
@@ -541,16 +541,6 @@ impl Waker {
541541
///
542542
/// If an owned `Waker` is needed, `clone()` this one.
543543
///
544-
/// # Warning
545-
///
546-
/// When implementing a runtime-agnostic future which wraps other future(s),
547-
/// do not use this function as a way to be able to call `poll` methods
548-
/// when you don't have your caller's `Context` available.
549-
///
550-
/// Using a no-op waker for that purpose would cause wakeups to be lost:
551-
/// the inner future would store only the no-op waker,
552-
/// replacing the proper waker for the waiting task.
553-
///
554544
/// # Examples
555545
///
556546
/// ```
@@ -808,16 +798,6 @@ impl LocalWaker {
808798
///
809799
/// If an owned `LocalWaker` is needed, `clone()` this one.
810800
///
811-
/// # Warning
812-
///
813-
/// When implementing a runtime-agnostic future which wraps other future(s),
814-
/// do not use this function as a way to be able to call `poll` methods
815-
/// when you don't have your caller's `Context` available.
816-
///
817-
/// Using a no-op waker for that purpose would cause wakeups to be lost:
818-
/// the inner future would store only the no-op waker,
819-
/// replacing the proper waker for the waiting task.
820-
///
821801
/// # Examples
822802
///
823803
/// ```

0 commit comments

Comments
 (0)