Skip to content

Commit

Permalink
Move local noop waker to local_waker feature flag
Browse files Browse the repository at this point in the history
Co-authored-by: zachs18 <[email protected]>
  • Loading branch information
eholk and zachs18 authored Nov 18, 2024
1 parent 9b91e76 commit 5f259ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/core/src/task/wake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -863,8 +863,7 @@ impl LocalWaker {
/// ```
#[inline]
#[must_use]
#[stable(feature = "noop_waker", since = "CURRENT_RUSTC_VERSION")]
#[rustc_const_stable(feature = "noop_waker", since = "CURRENT_RUSTC_VERSION")]
#[unstable(feature = "local_waker", issue = "118959")]
pub const fn noop() -> &'static LocalWaker {
const WAKER: &LocalWaker = &LocalWaker { waker: RawWaker::NOOP };
WAKER
Expand Down

0 comments on commit 5f259ac

Please sign in to comment.